You are viewing a single comment's thread. Return to all comments →
Python solution
def pickingNumbers(a): num_counter = Counter(a) return max( num_counter[num] + num_counter[num + 1] for num in num_counter.keys() )
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 solution