Problem 1416 · Hard

Restore The Array

Split a digit string into numbers from 1 to k without leading zeros, counting splits with a table over prefix length.

Open the interactive visualisation