Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Two bins solution in Speedy category for Non-unique Elements by veky
def checkio(sequence):
bins = seen, nonunique = set(), set()
for number in sequence: bins[number in seen].add(number)
return [number for number in sequence if number in nonunique]
Sept. 24, 2015
Comments: