You are viewing a single comment's thread. Return to all comments →
Python 3
def pickingNumbers(a): arr = Counter(a) return max(arr[i]+arr.get(i+1,0) for i in arr)
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 →
Python 3