Problem 233 · Hard
Count total occurrences of digit 1 in all numbers from 1 to n using math.
Open the interactive visualisation