Skip to content

Commit 74c8ccc

Browse files
authored
Add newline at end of ohkingtaek.py
Fix missing newline at end of file.
1 parent f295e2f commit 74c8ccc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

โ€Žnumber-of-1-bits/ohkingtaek.pyโ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ def hammingWeight(self, n: int) -> int:
77
- ๊ณต๊ฐ„๋ณต์žก๋„: O(n)
88
๋ฌธ์ž์—ด์„ ์ด์ง„์ˆ˜๋กœ ๋ณ€ํ™˜ํ•˜๊ณ , 1์˜ ๊ฐœ์ˆ˜๋ฅผ ์„ธ๊ธฐ
99
"""
10-
return Counter(bin(n)[2:])["1"]
10+
return Counter(bin(n)[2:])["1"]

0 commit comments

Comments
ย (0)