Enumeration
1291. Sequential Digits
A number has "sequential digits" if each digit is one more than the previous (1234, 5678). Given [low, high], return all such numbers in range, ascending. The whole trick: every sequential-digit…
Loading…
A number has "sequential digits" if each digit is one more than the previous (1234, 5678). Given [low, high], return all such numbers in range, ascending. The whole trick: every sequential-digit…
Loading…