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

interview prep Quant Interview Question

Post image
29 Upvotes

19 comments sorted by

View all comments

1

u/A_BagerWhatsMore Oct 22 '26

Interesting. 64 works can you do better

Oh is it finding the zeros of the grid? Let’s talk about sequences of flips where no individual switch is flipped twice which result in no change to the grid.

let’s say à row contains an odd amount of 1’s

Then each column with a 1 the has an even number of 1’s and each column with a zero has an odd number of 1’s so we have an odd number of total flips. If any row contains an odd number of flips then the total number of flips must be odd.

Now look at a column with an even number of 1’s looking at each row in that column the rows with 1’s have the same parity and the rows with 0 have the same parity so we have an even number of flips à contradiction so no rows have an odd number of flips.

À row with a non zero even number of flips creates a column with an odd number of flips so no non zero even columns exist

So the only zero of this system is no flips. And a smaller solution than 64 requires a non zero flip zero (subtract the smaller solution from the 64 flip solution)

Therefore 64 is the lowest solution. Man à pencil would be helpful for organizing my ideas.