You are viewing a single comment's thread. Return to all comments →
How about this in python ?
n,a = input(),list(map(int,input().split())) print(max(a.count(x)+a.count(x+1) for x in set(a)))
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 →
How about this in python ?