40ms Solution By C

  • 4
    int rangeBitwiseAnd(int m, int n) {
        int i;
        return m<<i;

  • 0

    This solution is really cool. Could you please give an explanation of what exactly is happening? I did dry this on paper and can't figure out the reasoning behind this.

Log in to reply

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