Print numbers < n with adjacent digit difference of 1
Filed under Jabong
The question
Generate all numbers less than n such that the absolute difference between any two adjacent digits is exactly 1.
No write-up yet. Related questions below have one.
Related Jabong questions
Collected from public candidate posts and coding forums. Updated Nov 2026.