3950. Exactly One Consecutive Set Bits Pair
You are given an integer
n.Return
trueif its binary representation contains exactly one adjacent pair of set bits, andfalseotherwise.
1 | class Solution { |
3950. Exactly One Consecutive Set Bits Pair
You are given an integer
n.Return
trueif its binary representation contains exactly one adjacent pair of set bits, andfalseotherwise.
1 | class Solution { |