Skip to content

Commit 9b54e4b

Browse files
fix build
1 parent 34bec61 commit 9b54e4b

File tree

1 file changed

+1
-0
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+1
-0
lines changed

src/main/java/com/fishercoder/solutions/_693.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ public boolean hasAlternatingBits(int n) {
4242
return true;
4343
}
4444
}
45+
4546
public static class Solution2 {
4647
public boolean hasAlternatingBits_oneline(int n) {
4748
return Integer.bitCount(((n >> 1) ^ n) + 1) == 1;

0 commit comments

Comments
 (0)