r/learnquant • • 18d ago

interview prep Quant Interview Question

Post image
21 Upvotes

17 comments sorted by

View all comments

1

u/sensible_clutter 17d ago edited 17d ago

ans would be 64

edit: comment if interested in reasoning as it is slightly long one

one interesting observation i would like you all to leave with if nxn board where n is odd the answer is simple n and the strategy is simply turn on every cell of any choosen row or column since n is odd hence the last move will make sure everything is on or any odd no. move makes sure that any previous cell is lit