Search
⌘K

Leetcode 1291. Sequential Digits

Find all integers whose digits are consecutive increasing digits (each digit = previous + 1) and return the sorted list of those within the inclusive range [low, high]. Because digits are limited to 1–9, candidates are just the contiguous subsequences of "123456789", so you only need to generate and filter that small set.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.