low and high. Return all staircase numbers in the range [low, high] inclusive, in increasing order.low=30, high=80 → [32, 34, 43, 45, 54, 56, 65, 67, 76, 78]
In 32, 34, 43, 45, 54, 56, 65, 67, 76, 78 adjacent digits differ by 1. Numbers like 33 or 40 do not qualify.
low=0, high=11 → [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
Every single-digit number qualifies since it has no adjacent digits. Among two-digit numbers up to 11 only 10 does.
low=900, high=1000 → [987, 989]
low=30, high=80
[32, 34, 43, 45, 54, 56, 65, 67, 76, 78]
Run checks the first 3 tests in your browser. Submit checks all 96 tests on the server, hidden ones included.