You are viewing a single comment's thread. Return to all comments →
Python:
def pickingNumbers(a): return max( (max(a.count(e + 1), a.count(e - 1)) + a.count(e)) for e in set(a) )
Picking Numbers
You are viewing a single comment's thread. Return to all comments →
Python: