• + 0 comments

    in python -

    def bitwiseAnd(N, K): if K - 1 | K <= N: return K -1 else: return K-2