Problem 233 · Hard

Number of Digit One

Count total occurrences of digit 1 in all numbers from 1 to n using math.

Open the interactive visualisation