Digits 0-9 or 1-9


#1

Digits 0-9 solution is difficult and requires the use of string. But in the solution 1-9 digits are considered. Wasted like one hour for the solution of 0-9 case.


#2

no it is not difficult approach still remains the same.