← All problems
Medium · 2-D Dynamic Programming

Stone Game II

Maximize the first player's stones when a turn takes up to 2M leading piles and updates M.

Full problem and submission ↗
main.js

Console

Ready