Problem 1219 · Medium

Path with Maximum Gold

On a grid of gold amounts, find the most gold collectible on a walk that never revisits a cell. The visual traces a depth-first path and updates the running total as it backtracks.

Open the interactive visualisation