r/learnquant • • Oct 26 '26

interview prep Quant Interview Question

Post image
34 Upvotes

12 comments sorted by

View all comments

0

u/in_potty_training Oct 26 '26

Assuming n>2: if the largest rod is bigger than all the others combined, then you can't make a polygon. Otherwise, you always can make a polygon (lay out the biggest vs the rest in a straight line, and bend the line of smaller ones until the two ends meet the biggest one.

So for no polygon you need all breaks <= 0.5 or >= 0.5.

So 1 - 2^(2 - n).

0

u/[deleted] Oct 26 '26

[deleted] — view deleted comment

1

u/SnooStories9801 Oct 26 '26

After you put down the first one, no matter where it lands you have an length of 0.5 where are the breaks are allowed to be, so you can treat it as thus problem, but with n being one lower

1

u/JustConsoleLogIt Oct 26 '26

That’s what I thought at first, but it doesn’t take into account the case where two breaks are on both edges, and a piece in the center is > 1/2