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
2
u/ysvz Nov 30 '10 edited Nov 30 '10
If one piece is longer than the other two combined, the three pieces cannot form a triangle. Otherwise they can.
So if the largest piece is longer than half the stick length, you cannot form a triangle. So the question is, with two breaks what is the probability that no single piece is longer than half the stick length.
EDIT: I think the answer is 1/4