Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Uncategorized category for Non-unique Elements by PiotrKrol
def checkio(data):
j = 0
wynik = [0] * len(data)
for i in range(len(data)):
if data.count(data[i]) > 1:
wynik[j] = data[i]
j += 1
return wynik[0:j]
Oct. 19, 2017