Problem: Q967. Numbers With Same Consecutive Differences Return all non-negative integers of length n such that the absolute difference between every two consecutive digits is k. Note that every number in the answer must not have leading zeros. For ...

Markdown supported · ⌘↵ to post
Prativa Chakraborty
Very simple explanation.