You are viewing a single comment's thread. Return to all comments →
def toys(w): w.sort() num_containers = 0 i = 0 while i < len(w): num_containers += 1 container_limit = w[i] + 4 while i < len(w) and w[i] <= container_limit: i += 1 return num_containers
Seems like cookies are disabled on this browser, please enable them to open this website
Priyanka and Toys
You are viewing a single comment's thread. Return to all comments →