This website works better with JavaScript
ホーム
エクスプローラ
ヘルプ
登録
サインイン
wolves
/
leetcode
同期ミラー
https://git.wolves.top/wolves/leetcode.git
ウォッチ
1
スター
0
フォーク
0
ファイル
課題
0
Wiki
ツリー:
e1e872380e
ブランチ
タグ
main
leetcode
/
26
/
02
/
693.go
693.go
90 B
履歴
Raw
1
2
3
4
5
6
package A
func hasAlternatingBits(n int) bool {
n = n ^ (n >> 1)
return n&(n+1) == 0
}