Skip to content

Commit 9401aaa

Browse files
authored
Update yeongu.cpp
1 parent 68bc62b commit 9401aaa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

number-of-1-bits/yeongu.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Time complexity: O(n) 왜냐하면, while문
2+
// Space complexity: O(1)
3+
14
class Solution {
25
public:
36
int hammingWeight(int n) {

0 commit comments

Comments
 (0)