You are viewing a single comment's thread. Return to all comments →
Python 3
def bitwiseAnd(N, K): # Write your code here tot = 0 for j in range(N): if (j+1) != (K-1): ba = (K-1)&(j+1) tot = max(ba, tot) return tot
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