You are given an integer n.
Return true if its binary representation contains exactly one pair of consecutive set bits, and false otherwise.
Example 1:
Input: nums = 6
Output: true
Explanation:
110."11"). Thus, the answer is true.Example 2:
Input: nums = 5
Output: false
Explanation:
101.false.Constraints:
0 <= n <= 105Loading editor...
6