• + 0 comments
    public static int bitwiseAnd(int N, int K) {
        return ((K - 1) | K) <= N ? K -1 : K -2;
    }