You are viewing a single comment's thread. Return to all comments →
in python3 : return sum([ y//2 for y in ar.count(x) for x in set(ar)])
Seems like cookies are disabled on this browser, please enable them to open this website
Maximum Element
You are viewing a single comment's thread. Return to all comments →
in python3 : return sum([ y//2 for y in ar.count(x) for x in set(ar)])