You are viewing a single comment's thread. Return to all comments →
#python def toys(w): res=[] w.sort() i=0 m=w[i] while i<len(w): d=abs(m-w[i]) if d<=4: res.append(w[i]) i+=1 else: res.append(" ") m=w[i] i+=1 return res.count(" ")+1
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 →