N digit numbers having difference between the first and last digits as K
Given two integer N and K, the task is to print all positive numbers made up of N digits whose difference between the first and last digits equal to K. Examples: Input: N = 2, K = 0Output: 11, 22, 33, 44, 55, 66, 77, 88, 99 Input: N = 2, K = 9Output: 90 Approach: The idea is to generate all possible