You are viewing a single comment's thread. Return to all comments →
**simple python solution **
def pickingNumbers(a): # Write your code here c = [0]*(max(a)+1) for i in a : c[i] += 1 m = 0 for i in range(len(c)-1): if c[i] + c[i+1] > m: m = c[i] + c[i+1] return m
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 →
**simple python solution **