Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
O(n) :-P solution in Speedy category for Non-unique Elements by veky
def checkio(data):
from collections import Counter
nonunique = Counter(data) - Counter(set(data))
return [x for x in data if x in nonunique]
Nov. 7, 2013
Comments: