sit down, write down, light up

The problem is here: https://leetcode.com/problems/bitwise-and-of-numbers-range/ .
I simply wrote a silly version and failed as expected,
it just did exactly as this problem described.

class Solution(object):
    def rangeBitwiseAnd(self, m, n):
        """
        Attention! This is a bad version!
        :type m: int
        :type n: int
        :rtype: int
        """
        return ...

read more