141: Generate all decimal numbers

Given a number of digits, return all decimal numbers that have exactly that many digits

 

Example 1

Input:   0

Output:  []

Example 2

Input:   1

Output:  ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
Difficulty:Easy
Topic:Backtracking
Problem #:141