digits made of digits. Can you cut it into **two or more** non-empty pieces so that the numbers written in the pieces (leading zeros allowed) form a countdown, each one exactly 1 less than the one before?
For example, "0201" cuts into "02" and "01", which are 2 and 1, so it works. "012" cannot work at all, because the numbers have to go down.
Return True if such a cut exists, and False otherwise.digits='1110009' → True
Split into 11, 10, 009: the values 11, 10, 9 each drop by exactly one.
digits='4320' → False
No cut works: 4, 3, 2, 0 breaks at the last step, and 43, 20 or 432, 0 are not consecutive.
digits='00100' → True
digits='1110009'
True
Run checks the first 3 tests in your browser. Submit checks all 57 tests on the server, hidden ones included.