Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Non-unique Elements by tomaszdzieniak
import collections
def checkio(data):
duplicates = [x for x, cnt in collections.Counter(data).items() if cnt > 1]
result = [x for x in data if x in duplicates]
return result
Jan. 20, 2016
Comments: