Problem 2836 · Hard

Maximize Value of Function in a Ball Passing Game

For every starting holder of a ball, find the largest total of ids collected over a fixed number of passes. The visual builds jump tables for powers of two and walks the bits of the pass count for each start.

Open the interactive visualisation