You are viewing a single comment's thread. Return to all comments →
def andXorOr(a): m = 0 s = [] for i in a: while s and s[-1] >= i: m = max(m, i^s.pop()) if s: m = max(m, i^s[-1]) s.append(i) return m
Seems like cookies are disabled on this browser, please enable them to open this website
AND xor OR
You are viewing a single comment's thread. Return to all comments →