Time: 34 ms (66.38%), Space: 13.8 MB (43.78%) - LeetHub

This commit is contained in:
Deven
2023-02-06 19:36:37 -05:00
parent 3ffc004b46
commit 3515f792c9
@@ -0,0 +1,3 @@
class Solution:
def hammingWeight(self, n: int) -> int:
return str(bin(n)).count("1")