You are viewing a single comment's thread. Return to all comments →
from itertools import accumulate as a def equalStacks(h1, h2, h3): return max(set(a(h1[::-1])) & set(a(h2[::-1])) & set(a(h3[::-1])) | {0})
Seems like cookies are disabled on this browser, please enable them to open this website
Equal Stacks
You are viewing a single comment's thread. Return to all comments →