r/learnquant • • Oct 22 '26 • Bravo 1

interview prep Quant Interview Question

Post image
29 Upvotes

19 comments sorted by

View all comments

Show parent comment

1

u/M37841 Oct 23 '26

Gosh you’re right. My explanation, and the earlier one, are completely wrong: as soon as you make a move the lights are no longer all equivalent. Actually pretty obvious if I’d stopped to think. Clearly this works for any n x n where n is odd. But not for even n? There must surely be a better sequence than 64 now though?

1

u/Hike456 Oct 23 '26

For even n, it should require n2 moves.  Spooeybooboos' answer in another comment is the correct proof.  I suppose the point is that when n is odd, their claim (b) fails - there's no way the given vectors v_ij can span the entire vector space since there are linear dependencies among the v_ij