You are viewing a single comment's thread. Return to all comments →
python:
(Is it true that for any kind of ball, there is a container with exactly that many balls?)
def organizingContainers(container): cont_sums = [sum(c) for c in container] type_sums = [sum(c) for c in zip(*container)] if sorted(cont_sums) == sorted(type_sums): return "Possible" return "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 →
python:
(Is it true that for any kind of ball, there is a container with exactly that many balls?)