You are viewing a single comment's thread. Return to all comments →
def toys(w): w.sort() containers=0 minn=-5 for i in w: if i>minn+4: containers+=1 minn=i return 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 →
Python 3
def toys(w): w.sort() containers=0 minn=-5 for i in w: if i>minn+4: containers+=1 minn=i return containers