Count total number of digits from 1 to n.

  • n=13
  • output=17

since from [1-9] total 9 digits.[10-13] total 4*2=8 digits.

Solution Stats

127 Solutions

30 Solvers

Last Solution submitted on Aug 23, 2025

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...