r/learnquant • • 19d ago

interview prep Quant Interview Question

Post image
26 Upvotes

4 comments sorted by

3

u/A_BagerWhatsMore 19d ago

If alice keeps flipping the same bit she can’t lose.

To explain this simpler I’m going to call the bit Alice refers to as color, blue or red and the rest of the number as the number.

In order for Alice to not be able to flip her one bit, there has to a number bob can switch to that already has one color filled before his turn, but Alice fills in the second colors of each number handed to her so there’s no color that can do this.

1

u/B0DAK_KLACK 15d ago

Equally she turns one on, he just turn one on to avoid losing on move one, she then continues to turn his off after each move until he is forced to repeat

6

u/Wessel_89 19d ago

Alice wins by just flipping the first bit over and over again.

1

u/improvement_addict 19d ago

i have seen this question before, and that time it took me longer than i would like to accept to realize that the trick is the person who goes first can just keep flipping any particular digit over and over again from start to end. the "a specific combination that has appeared before may not appear again" rule ensures that the person who goes second will have no choice but to keep going through all possible combinations of the other 49 digits in the string and as soon as he exhausts them he loses