You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: src/main/java/com/fishercoder/solutions/_191.java
+12-12
Original file line number
Diff line number
Diff line change
@@ -8,40 +8,40 @@ public class _191 {
8
8
//another cool trick that I learned: doing bitwise AND operation between n and n-1 will always flip the least significant 1 bit in n
9
9
//to zero, here's the solution from Editorial:
10
10
//example run for the above editorial solution: input 5, n will be 5&4 and becomes 4, then in the next run, n will become 4&3 which is 0, thus exit the while loop.
0 commit comments