Given a sorted array, write a function that will create a binary search tree from the array.
Intern Interview Questions
249,073 intern interview questions shared by candidates
Asked me to introduce my pertinent experiences. After that there was a very easy coding question. Give you an array, find the two numbers that are closest to each other. Return the smallest pair if there are more than one solutions.
Given a binary tree, where each node has a third reference which is not yet initialized, go through the tree and point the third reference to the rightmost tree node on the same level. If there are no other nodes to its right, point it to null.
Tell me something about yourself
If a sorted array is rotated, how to find how many times it has been rotated.
design an algorithm to find every word in a 4*4 box (like words with friends)
How many new cars, on average, are bought in the US each year?
Tell me about a time you were a leader and were unsuccessful.
Find the sublist with the greatest sum in linear time
How to save resources' IDs used by an activity and access them in O(1), assuming there could be an infinite number of resources?
Viewing 821 - 830 interview questions