Strictly Climbing Digits
Count the integers in [L, R] whose digits are strictly increasing left to right (like 1479).
Input: one line with two integers L and R.
Output: the count of qualifying integers in [L, R].
Constraints:
- 1 ≤ L ≤ R ≤ 1018
Sample Tests
Input 1
1 30
Output 1
24
Input 2
100 200
Output 2
28
Discussion (opens after you solve — no spoilers before)
No comments yet.