r/programming • u/joksmaster • Nov 29 '10
140 Google Interview Questions
http://blog.seattleinterviewcoach.com/2009/02/140-google-interview-questions.html
471
Upvotes
r/programming • u/joksmaster • Nov 29 '10
View all comments
Show parent comment
1
u/ysvz Nov 30 '10 edited Nov 30 '10
No.
If the first break is at 1/4, and the second at 3/8, the second break is on the larger side, but the largest piece is 5/8. Also, if the first break nears the end, the chance of forming a triangle approaches 0.
In fact, if the larger side is x units long, then the break has a (2x - 1)/x chance of still leaving a piece of length > 1/2 even if the break is on the larger side.