leetcode LeetCode 201. Bitwise AND of Numbers Range Posted on January 29, 2018 by twifno Bitwise AND of Numbers Range Read More

leetcode LeetCode 137. Single Number II Posted on January 19, 2018 by twifno Single Number II. Count the number of 1 for each bit. Read More

leetcode LeetCode 191. Number of 1 Bits Posted on July 23, 2017July 23, 2017 by twifno Number of 1 Bits. Simple right shift operation, no secret. Read More

leetcode LeetCode 136. Single Number Posted on July 23, 2017July 23, 2017 by twifno Single Number. It is one of the most classic bit manipulation problem. X XOR X = 0 Read More

leetcode Leetcode 29. Divide Two Integers Posted on July 15, 2017July 15, 2017 by twifno Divide Two Integers. The core observation in my solution is for any number n, n << 1 == n * 2 (with the assumption that there is no overflow.) So… Read More