โ† Directi questions

Costly Visit on a Grid

Filed under Directi

The question

Find the minimum cost to travel from the top-left corner (1,1) to the bottom-right corner (N,M) of a grid, where each cell has a visitation cost and a direction change cost, starting facing either Right or Down.

No write-up yet. Related questions below have one.

Related Directi questions

Collected from public candidate posts and coding forums. Updated Nov 2026.