Skip to content

Commit 69e2401

Browse files
refactor 693
1 parent 9b54e4b commit 69e2401

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public boolean hasAlternatingBits(int n) {
4444
}
4545

4646
public static class Solution2 {
47-
public boolean hasAlternatingBits_oneline(int n) {
47+
public boolean hasAlternatingBits(int n) {
4848
return Integer.bitCount(((n >> 1) ^ n) + 1) == 1;
4949
}
5050
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy