Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
collections.Counter and list comprehension solution in Clear category for Non-unique Elements by Phil15
from collections import Counter
def checkio(data):
counts = Counter(data)
return [elem for elem in data if counts[elem] > 1]
Feb. 28, 2020
Comments: