mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-06 16:01:41 +08:00
update
This commit is contained in:
18
leetcode/problem/sequential-digits.html
Normal file
18
leetcode/problem/sequential-digits.html
Normal file
@@ -0,0 +1,18 @@
|
||||
<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> </p>
|
||||
<p><strong>Example 1:</strong></p>
|
||||
<pre><strong>Input:</strong> low = 100, high = 300
|
||||
<strong>Output:</strong> [123,234]
|
||||
</pre><p><strong>Example 2:</strong></p>
|
||||
<pre><strong>Input:</strong> low = 1000, high = 13000
|
||||
<strong>Output:</strong> [1234,2345,3456,4567,5678,6789,12345]
|
||||
</pre>
|
||||
<p> </p>
|
||||
<p><strong>Constraints:</strong></p>
|
||||
|
||||
<ul>
|
||||
<li><code>10 <= low <= high <= 10^9</code></li>
|
||||
</ul>
|
Reference in New Issue
Block a user