You are given two glass balls in a 100 story building. You have to find out by minimal drops which is the lowest floor at which they would break.
Student Programmer Interview Questions
970 student programmer interview questions shared by candidates
Create a data structure that can add multiple of the same object in o(1) also remove in o(1)
First, I had to submit a home test. In the interview itself, I was asked 2 questions: The first one I don't remember. In the second I was given a sorted array of numbers which was cut in the middle in the order of the two parts changed. For example: the original array is [1,2,3,4,5,6] and the array you are given is [4,5,6,1,2,3]. I had to come up with an algorithm that will find where the end of the original array ends (the index 2 in the example).
Print a binary tree in Zig-Zag (one level from left to right and the next level from right to left and so on..).
What is a process
Get array with n elements return them in a random order each time without using any extra space
The best algorithm to find two numbers in array which their difference is delta.
Move binary tree to an array
How do you handle stress
write a function that can get 2 possible inputs 3 or 4 and it should return the other number without any if statements
Viewing 61 - 70 interview questions