โ† Dunzo questions

Minimum matrix cell changes for path existence

Filed under Dunzo

The question

Given an MxN matrix of direction characters ('L', 'R', 'U', 'B') where you start at top-left and can change any cell's value, find the minimum changes needed to ensure a valid path from top-left to bottom-right.

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

Related Dunzo questions

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