在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ An integer has sequential digits if and only if each digit in the number is one more than the previous digit. Return a sorted list of all the integers in the range [low, high] inclusive that have sequential digits.
Example 1: Input: low = 100, high = 300 Input: low = 1000, high = 13000 Constraints: 10 <= low <= high <= 10^9 我们定义「顺次数」为:每一位上的数字都比前一位上的数字大 1 的整数。 请你返回由 [low, high] 范围内所有顺次数组成的 有序 列表(从小到大排序)。
示例 1: 输出:low = 100, high = 300 输出:low = 1000, high = 13000 提示: 10 <= low <= high <= 10^9 |
请发表评论