967. Numbers With Same Consecutive Differences

    [LeetCode] 967. Numbers With Same Consecutive Differences

    967. Numbers With Same Consecutive Differences Medium Given two integers n and k, return an array of all the integers of length n where the difference between every two consecutive digits is k. You may return the answer in any order. Note that the integers should not have leading zeros. Integers as 02 and 043 are not allowed. Example 1: Input: n = 3, k = 7 Output: [181,292,707,818,929] Explanati..