Binary Number with Alternating Bits (Easy Yahoo)
Input: 5
Output: True
Explanation:
The binary representation of 5 is: 101Input: 7
Output: False
Explanation:
The binary representation of 7 is: 111.Input: 11
Output: False
Explanation:
The binary representation of 11 is: 1011.