Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Creative category for Non-unique Elements by jahmee
#Your optional code here
#You can import some modules or create additional functions
def checkio(data):
lista = data
tupcio = tuple(data)
lista.sort()
pojedyncze = []
for i in range(2,len(lista)):
if i == 2:
if lista[i-2]!=lista[i-1] and lista[i-1]!=lista[i]:
pojedyncze.extend([lista[i-2],lista[i-1]])
elif lista[i-2]!=lista[i-1]:
pojedyncze.insert(-1,lista[i-2])
if i == len(lista)-1:
if lista[i-1]!=lista[i]:
pojedyncze.insert(-1,lista[i])
else:
if lista[i]!=lista[i-1] and lista[i]!=lista[i+1]:
pojedyncze.insert(-1,lista[i])
k = 0
data = list(tupcio)
while k
Oct. 24, 2017