Available question text
Generate all n-digit integers (no leading zeros) whose adjacent digits have absolute difference k — a digit-by-digit construction problem solvable by DFS/BFS from starting digits 1–9, where each step has at most two next-digit choices (digit ± k) and k=0 requires avoiding duplicates.
Related questions
Continue with questions that share topics or the same question type.
- Concatenation of Consecutive Binary Numbers
Coding
- Consecutive Numbers
Coding · Database
- Consecutive Numbers Sum
Coding · Enumeration · Math
- Divide Array in Sets of K Consecutive Numbers
Coding
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 967. Numbers With Same Consecutive Differences
Interview date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source