package
Version:
v1.4.9
Opens a new window with list of versions in this module.
Published: Nov 15, 2019
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
< Previous
Next >
Given an integer n, count the total number of digit 1 appearing in all non-negative integers less than or equal to n.
Example:
Input: 13
Output: 6
Explanation: Digit 1 occurred in the following numbers: 1, 10, 11, 12, 13.
[Math]
Similar Questions
- Factorial Trailing Zeroes (Easy)
- Digit Count in Range (Hard)
Hints
Hint 1
Beware of overflow.
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.