You are viewing a single comment's thread. Return to all comments →
one liner preventing exceeding time limit:
def bitwiseAnd(N, K): return max((a+1)&(K-1) for a in range(N) if K-1 != a+1)
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 →
one liner preventing exceeding time limit: