Class Solution
java.lang.Object
g1201_1300.s1291_sequential_digits.Solution
1291 - Sequential Digits.<p>Medium</p>
<p>An integer has <em>sequential digits</em> if and only if each digit in the number is one more than the previous digit.</p>
<p>Return a <strong>sorted</strong> list of all the integers in the range <code>[low, high]</code> inclusive that have sequential digits.</p>
<p><strong>Example 1:</strong></p>
<p><strong>Input:</strong> low = 100, high = 300</p>
<p><strong>Output:</strong> [123,234]</p>
<p><strong>Example 2:</strong></p>
<p><strong>Input:</strong> low = 1000, high = 13000</p>
<p><strong>Output:</strong> [1234,2345,3456,4567,5678,6789,12345]</p>
<p><strong>Constraints:</strong></p>
<ul>
<li><code>10 <= low <= high <= 10^9</code></li>
</ul>
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Solution
public Solution()
-
-
Method Details
-
sequentialDigits
-