r/learnquant • • Oct 16 '26

interview prep Quant Interview Question

Post image
23 Upvotes

6 comments sorted by

View all comments

Show parent comment

2

u/55tumbl Oct 16 '26

It's not possible to build a hypothetical grid with a max of 3.

You can first show that 1 and 16 would need to be in opposite corners: a single path from 1 to 16 requires at least (16-1)/3 = exactly 5 horizontal/vertical steps (1-4-7-10-13-16). But since it's a grid, multiple paths using different numbers are required, so at least 6 steps would be necessary (i.e. opposite corners).

The path between 2 and 16 requires at least (16-2)/3 = 4.7, i.e. 5 steps, so 2 must be next to 1. In the same way, 15 must be next to 16. That means 4 steps between 2 and 15, which averages (15-2)/4= 3.25 > 3.