Given an integer n, count the total number of times the digit 1 appears in all non-negative integers less than or equal to n.
Practise this challenge
All coding challenges