LeetCode

Binary Number with Alternating Bits

Click here for an explanation.