Problem 3990 · Hard

Create Grid With Exactly K Paths II

Design a grid of free and blocked cells, at most 25 by 25, in which exactly k routes lead from the top-left to the bottom-right cell using only right and down moves. Any correct grid is accepted.

Open the interactive visualisation