1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-01-11 02:58:13 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
leetcode-problemset/leetcode-cn/problem (Chinese)/顺次数 [sequential-digits].html
2022-03-29 12:43:11 +08:00

26 lines
705 B
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<p>我们定义「顺次数」为:每一位上的数字都比前一位上的数字大 <code>1</code> 的整数。</p>
<p>请你返回由&nbsp;<code>[low, high]</code>&nbsp;范围内所有顺次数组成的 <strong>有序</strong> 列表(从小到大排序)。</p>
<p>&nbsp;</p>
<p><strong>示例 1</strong></p>
<pre><strong>输出:</strong>low = 100, high = 300
<strong>输出:</strong>[123,234]
</pre>
<p><strong>示例 2</strong></p>
<pre><strong>输出:</strong>low = 1000, high = 13000
<strong>输出:</strong>[1234,2345,3456,4567,5678,6789,12345]
</pre>
<p>&nbsp;</p>
<p><strong>提示:</strong></p>
<ul>
<li><code>10 &lt;= low &lt;= high &lt;= 10^9</code></li>
</ul>