LeetCode Solutions/LeetCoding Challenge/October 2021 LeetCoding Challenge/Bitwise AND of Numbers Range.java
<reponame>DevashishPathrabe/LeetCode<filename>LeetCode Solutions/LeetCoding Challenge/October 2021 LeetCoding Challenge/Bitwise AND of Numbers Range.javaclass Solution {
    public int rangeBitwiseAnd(int left, int right) {
        int count = 0;
        while (left != right){
            left >>= 1;
            right >>= 1;
            count++;
        }
        return left << count;
    }
}