Skip to content

Commit 859f981

Browse files
Update 0233 - Number of Digit One.md
1 parent 1b79fda commit 859f981

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dsa-solutions/lc-solutions/0200-0299/0233 - Number of Digit One.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,13 @@ class Solution {
111111

112112
### Complexity Analysis
113113

114-
#### Time Complexity: O($\log_{10} n$)
114+
#### Time Complexity: $O(log_{10} n)$
115115

116-
> **Reason**: The time complexity is O($\log_{10} n$), because we are processing each digit position from the least significant to the most significant, and the number of digit positions is logarithmic relative to the input size.
116+
> **Reason**: The time complexity is $O(log_{10} n)$, because we are processing each digit position from the least significant to the most significant, and the number of digit positions is logarithmic relative to the input size.
117117
118-
#### Space Complexity: O($1$)
118+
#### Space Complexity: $O(1)$
119119

120-
> **Reason**: The space complexity is O($1$), because we only use a constant amount of extra space regardless of the input size.
120+
> **Reason**: The space complexity is $O(1)$, because we only use a constant amount of extra space regardless of the input size.
121121
122122
# References
123123

0 commit comments

Comments
 (0)