Problem 2522 · Medium

Partition String Into Substrings With Values at Most K

Split a digit string into the fewest substrings whose values are at most k and that do not start with zero.

Open the interactive visualisation