count of no of occurences of a digit in between the given no from 1 to n;
https://leetcode.com/problems/number-of-digit-one/solution/.
and what if the question will be say count no of 2,or 4 or any random digit
count of no of occurences of a digit in between the given no from 1 to n;
https://leetcode.com/problems/number-of-digit-one/solution/.
and what if the question will be say count no of 2,or 4 or any random digit