You are viewing a single comment's thread. Return to all comments →
My Python 3 solution:
def organizingContainers(container): r = sorted([sum(x) for x in container]) c = sorted([sum(x) for x in zip(*container)]) return "Possible" if r == c else "Impossible"
Seems like cookies are disabled on this browser, please enable them to open this website
Organizing Containers of Balls
You are viewing a single comment's thread. Return to all comments →
My Python 3 solution: