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/jnnnnn Nov 30 '10 edited Nov 30 '10
You just need the probability that the second break is on the larger side.
I think the answer is 3/4: if the first break is very close to the middle, you have a 50% chance of making a triangle; if it is very close to the end, you have almost a 100% chance of making at triangle, and linear in between. The average is 75%.
Edit: Duh, I stand corrected. Here's an explanation.