You are viewing a single comment's thread. Return to all comments →
Python 3
def bitwiseAnd(N, K): bit_max = 0 for a in range(N): for b in range(a + 1, N + 1): if bit_max < a & b < K: bit_max = a & b return bit_max
Seems like cookies are disabled on this browser, please enable them to open this website
Day 29: Bitwise AND
You are viewing a single comment's thread. Return to all comments →
Python 3