You are viewing a single comment's thread. Return to all comments →
def pickingNumbers(a): a.sort() ml = 0 for i in range(len(a)): la = [a[i]] for j in range(i+1, len(a)): if abs(a[i]-a[j]) <= 1: la.append(a[j]) print(la) if len(la) > ml: ml = len(la) return ml
Seems like cookies are disabled on this browser, please enable them to open this website
Picking Numbers
You are viewing a single comment's thread. Return to all comments →