Half an integer without using * or / in your preferred language.
Developer Interview Questions
270,956 developer interview questions shared by candidates
How would you implement int atoi ( const char * str );
I am in a 100-story building. I have with me two glass balls. I know that if I throw the ball out of the window, it will not break if the floor number is less than X, and it will always breaks if the floor number is equal to or greater than X. Assuming that I can reuse the balls which don't break, find X in the minimum number of throws.
The meeting room problem.
Q1: If there is a new Android engineer, how will you suggest the best practice of async jobs in Android? (And the detail about AsyncTask, Executor, Thread interrupt, memory leak...and so on) Q2: Give an unsorted array, find the kth smallest item (Can you do it more quickly?)
Design an enumerator (e.g. named FBSuperEnumerator) that has two API's: - (id) nextObject; - (NSArray *) allObjects; // all objects remaining which, when given an input array that has content that can be either NSNumbers or NSArray, will expand all arrays embedded inside it. That is, given an input of something like @[@1, @[@2, @[@3, @4]], @[ ], @5], each call to nextObject will display items in the expected order.
Print Tree nodes level by level
Bob can make a cigar from 5 used butts of old cigars. If he has 25 cigar butts, how many cigars can he smoke?
Javscript whats is output of this statement. console.log()? type question eg. console.log('1'+2+5), console.log(+true)
Peer Programming Round: A coding problem statement was given which had to be implemented in 4 hours. The reviewer was not interested in understanding the approach.
Viewing 511 - 520 interview questions