You are viewing a single comment's thread. Return to all comments →
def organizingContainers(container): container_sizes = [sum(row) for row in container] ball_counts = [sum(i) for i in zip(*container)] return "Possible" if sorted(container_sizes) == sorted(ball_counts) else "Impossible"
Python
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 →
Python