Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit abbe082

Browse files
author
Ram swaroop
committed
added comments
1 parent ea09762 commit abbe082

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/me/ramswaroop/bits/ReverseBits.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ public static int getNumberByReversingBitsV1(int n) {
6363
* bits used to represent the number.
6464
* <p/>
6565
* Time complexity: O(log n) (as we are dividing 'n' by 2 in each iteration)
66+
* Space Complexity: O(1)
6667
*
6768
* @param n
6869
* @return

0 commit comments

Comments
 (0)