Skip to content

Commit ca4e32f

Browse files
committed
Adding time complexity of the code
1 parent 6fa6ef0 commit ca4e32f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bit/count_ones.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
For example, the 32-bit integer ’11' has binary
77
representation 00000000000000000000000000001011,
88
so the function should return 3.
9+
10+
T(n)- O(log n)
911
"""
1012

1113

0 commit comments

Comments
 (0)