Problem 1340 · Hard

Jump Game V

Memoize the longest chain of jumps from each index, where a jump may only cross strictly smaller values.

Open the interactive visualisation