what if the first break is only about 10% into the first half, and the second break is right at the end of the second half? :)
You are viewing a single comment's thread from:
what if the first break is only about 10% into the first half, and the second break is right at the end of the second half? :)
Wait a minute, I think the response depends on what your definition of a triangle is. A triangle is three connected lines. Unless the interviewer slides a stick and a bottle of Elmer's glue across the table then you are just dealing with three sticks pushed together and that, my friends, is not a triangle. Do I have any of my fellow brothers in Mensa here that can give me an Ahmen?
Damn! I am wrong! And a guy with the name of a defeat pointed my mistake! (I am French)
So, what I have just established is that the probability is less than 50%.
L = length of the stick.
If the first point is in the first half, at x between 0 L and 0.5 L, to be able to have a triangle, the second point need to be between 0.5 L and (0.5 + x) L.
I have the feeling that we need to integrate a function, but I an too old and tired for that.
Unless the job is somehow related to snapping sticks or figuring out arcane algorithms, it doesn't fucking matter.
Unfortunately, as a software developer, I sometimes have to figure out arcane algorithms…
took me a long time to get it
it's not an easy question
i can't remember the reasoning, but i remember the answer
you don't need calculus for it, but I'm sure if it's strong enough it can help
you can just reasoning it out in your mind, but it's not easy
i don't want to attempt it again
I cheated and found the answer googling "stick 3 part triangle" :
https://www.quora.com/A-rod-is-broken-into-three-parts-what-is-the-probability-that-the-three-parts-can-be-arranged-to-form-a-triangle
The answer is: 25%
haha yes it is :)
took me a long time thinking it over to get it right
You can still make a triangle...it's just one side would have a longer/running edge beyond the outer limit of the triangle. Granted, it would be a small triangle, but as long as they don't expect each piece to connect exactly at the ends, I think it still qualifies. :-)
haha :)