0233. Number of Digit One
https://leetcode.com/problems/number-of-digit-one
Description
Given an integer n
, count the total number of digit 1
appearing in all non-negative integers less than or equal to n
.
Example 1:
Example 2:
Constraints:
0 <= n <= 109
ac
Last updated