1849. Splitting a String Into Descending Consecutive Values
Description
**Input:** s = "1234"
**Output:** false
**Explanation:** There is no valid way to split s.**Input:** s = "050043"
**Output:** true
**Explanation:** s can be split into ["05", "004", "3"] with numerical values [5,4,3].
The values are in descending order with adjacent values differing by 1.ac
Previous1848. Minimum Distance to the Target ElementNext1850. Minimum Adjacent Swaps to Reach the Kth Smallest Number
Last updated