Given a string of digits num, split it into a sequence of integers ans that satisfies the following conditions:
The length of ans is at least
ans[i] ans[i + 1] ans[i + 2] for all ans.length
Each element in ans fits within a signed ans[i]
No element contains leading zeros, except for the value
Concatenating the elements of ans in order reproduces the original string num.
Return any valid sequence ans. If no such sequence can be formed, return an empty list.
Constraints:
num.length
num contains only digits.
Given a string of digits num, split it into a sequence of integers ans that satisfies the following conditions:
The length of ans is at least
ans[i] ans[i + 1] ans[i + 2] for all ans.length
Each element in ans fits within a signed ans[i]
No element contains leading zeros, except for the value
Concatenating the elements of ans in order reproduces the original string num.
Return any valid sequence ans. If no such sequence can be formed, return an empty list.
Constraints:
num.length
num contains only digits.