Software Developer Interview Questions

96,331 software developer interview questions shared by candidates

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.
avatar

Software Developer

Interviewed at FINRA

3.8
Aug 25, 2013

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.

Viewing 251 - 260 interview questions

Glassdoor has 96,331 interview questions and reports from Software developer interviews. Prepare for your interview. Get hired. Love your job.