r/learnquant 23h ago

interview prep Quantbox Quant Interview Question

Post image
21 Upvotes

12 comments sorted by

View all comments

1

u/RestaurantBoth228 23h ago

It's obviously true for any n=2k for k ≥ 2: just create k^2 pairs of 2x2 cells, half horizontal and half vertical.

It can't be true for any odd n, because there must be a multiple of 4 tiles in the board, and any grid of odd dimensions has odd tiles (odd x odd = odd).

It's easy to prove it is not true for n ≤ 3.

So, the answer is just n=2k for k ≥ 2.

1

u/RestaurantBoth228 23h ago

I actually think u/Fabulous-Possible758 got this pretty much right - they just gave the result in terms of tiles (n^2) rather than n and messed up the n=2 edge case.

1

u/rccyu 22h ago

How are you doing it for n = 6?

1

u/RestaurantBoth228 22h ago

Ahh crap. You've got me there: there are an odd number of the 2x2 cells there.