Problem 756 · Medium

Pyramid Transition Matrix

Backtrack row by row, choosing allowed top blocks, and memoise rows that cannot be completed.

Open the interactive visualisation