Maximum-Score Grid Path with Limited Jumps

Hard · Coding

Traverse a grid downward from a starting top-row column using diagonal or straight moves and up to k same-column row skips to compute the maximum score, lexicographically smallest optimal path, optimal path count modulo 10^9 + 7, and maximum score with consecutive-value bonuses.

This is a Pro problem. Pro unlocks the full prompt, a step-by-step walkthrough, a reference solution and tests you can run.

See Pro plans

More OpenAI problems