Skip to content

Commit e85cbb5

Browse files
refactor 233
1 parent ebda055 commit e85cbb5

File tree

1 file changed

+0
-11
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+0
-11
lines changed

src/main/java/com/fishercoder/solutions/_233.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,5 @@
11
package com.fishercoder.solutions;
22

3-
/**
4-
* 233. Number of Digit One
5-
*
6-
* Given an integer n, count the total number of digit 1 appearing in all non-negative integers less than or equal to n.
7-
8-
For example:
9-
Given n = 13,
10-
Return 6, because digit 1 occurred in the following numbers: 1, 10, 11, 12, 13.
11-
12-
Hint: Beware of overflow.
13-
*/
143
public class _233 {
154
public static class Solution1 {
165
public int countDigitOne(int n) {

0 commit comments

Comments
 (0)