191. Number of 1 Bits

time: O(1)

space: O(1)

optimized

time: O(k), k is the binary length of this num

space: O(1)

Last updated

Was this helpful?