How to Check Binary Number with Alternating Bits? November 19, 2018 bit hacks, c / c++ No Comments Given an integer, check if its binary representation are containing the alternating bits. For example, 101, 10101, 1010 are binary numbers with alternative bits. But 1011, 1110 are not. … [Continue Reading...]