sort binary array with minimum time complexity
Developer Intern Interview Questions
716,624 developer intern interview questions shared by candidates
Why do you want to work for Apple
Flatten a list containing n sublists. Ex: [3, 4, [4, [[55]]]] -> [3, 4, 4, 55]
4)write program to remove duplicate in an array
Given an int array, find the sequence of elements that has the largest sum
You have a pile of coins. One of them is counterfeit, and its weight is different from the other coins. All of the other coins weigh the same. You are given a balance. How would you find the counterfeit coin? Now code it up.
Given only a pointer to an arbitrary node in a singly-linked list, how would you delete that node? Are there any cases where this is impossible?
Write a function that determines if a tree is a BST or not
inorder traverse of a tree without.recursive
You have an array randomly filled with red, blue and green items. How do you order this list so the red items are at the beginning, followed by the blue ones, followed by the green ones? The algorithm should be in-place (no extra storage, or only constant extra storage) and the algorithm should only walk threw the array once (every position can only be read once).
Viewing 1441 - 1450 interview questions