Amazon.com Interview Question
1,580 Interview Reviews |
Back to all Amazon.com Interview Questions & Reviews
Interview questions and reviews posted anonymously by interview candidates
Interview Question for Software Development Engineer Intern at Amazon.com:
You got some baby bottle samples. You would like to know the max height you can drop it without breaking the bottle. Let set the unit as 1 foot. And the highest height you can reach is at N feet. So how would you find the (max) safe height?
| Tags: | algorithm See more , See less 8 |
See more for this Amazon.com Software Development Engineer Intern Interview
Helpful Question?
Yes |
No
Inappropriate?
Answers & Comments (4)
0 of 1 people found this helpful
Helpful Answer?
Yes |
No
Inappropriate?
0 of 1 people found this helpful
Helpful Answer?
Yes |
No
Inappropriate?
If breaks (Drop the bottle at N/4 i.,e going downwards)
If Does not Break( Drop the bottle at N/2+N/4 = 3N/4 i., going upwards )
This way you should be able to find the max height where a bottle breaks.
Helpful Answer?
Yes |
No
Inappropriate?
To comment on this
question,
Sign In with Facebook or
Sign Up



2 of 2 people found this helpful
by Interview Candidate: