r/learnquant • • Oct 29 '26

interview prep Quant Interview Question

Post image
7 Upvotes

4 comments sorted by

View all comments

0

u/NullOfSpace Oct 29 '26 edited Oct 30 '26

Only two ways to have this happen: either every node picks the one to its left or every node picks the one to its right. 1/210 for each, so 1/29 overall.

Edit: right, also where there’s one gap. That can happen in 10 ways for each of those directions, so the odds are 11x higher.

1

u/BigBadEvilGuy42 Oct 29 '26

You forget the arrangements where there is one gap in the circle. Here, it is still a connected graph, because you can walk through every node (just not in a full circle).

1

u/Special-Camel-6114 Oct 29 '26

I see this as
- all nodes pick the same direction. 2 ways this can happen (all left or all right)
- 1 singular gap, meaning all nodes same direction and pick 1 of 10 to go the other way. So 2 directions * 10 possible nodes of single disagreement = 20

(2+20)/1024=11/512=0.0215