92ms python beat 100%


  • 0
    R
    class Solution(object):
        def rangeBitwiseAnd(self, m, n):
            if (m&n)<<1<n: return 0
            i=0
            while m>>i!=n>>i:
                i+=1
            return m>>i<<i
    

    nothing but luck


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.