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 d6ef177 commit c1a902dCopy full SHA for c1a902d
Solution/338. Counting Bits/338. Counting Bits.py
@@ -0,0 +1,3 @@
1
+class Solution:
2
+ def countBits(self, n: int) -> List[int]:
3
+ return [i.bit_count() for i in range(n + 1)]
0 commit comments