We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7265665 commit 2da6d2aCopy full SHA for 2da6d2a
number-of-1-bits/invidam.go.md
@@ -13,7 +13,7 @@
13
<!-- Add your space complexity here, e.g. $$O(n)$$ -->
14
: 별도 자료구조를 사용하지 않는다.
15
# Code
16
-```
+```go
17
func hammingWeight(n int) int {
18
cnt := 0
19
for mask := 1; mask <= n; mask = mask << 1 {
0 commit comments