1416. Restore The Array
Description
**Input:** s = "1000", k = 10000
**Output:** 1
**Explanation:** The only possible array is [1000]**Input:** s = "1000", k = 10
**Output:** 0
**Explanation:** There cannot be an array that was printed this way and has all integer >= 1 and <= 10.**Input:** s = "1317", k = 2000
**Output:** 8
**Explanation:** Possible arrays are [1317],[131,7],[13,17],[1,317],[13,1,7],[1,31,7],[1,3,17],[1,3,1,7]**Input:** s = "2020", k = 30
**Output:** 1
**Explanation:** The only possible array is [20,20]. [2020] is invalid because 2020 > 30. [2,020] is ivalid because 020 contains leading zeros.ac
Previous1415. The k-th Lexicographical String of All Happy Strings of Length nNext1417. Reformat The String
Last updated