Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Creative category for Absolute Sorting by PiotrKrol
def checkio(numbers_array):
wynik = [0] * len(numbers_array)
indeksy = [0] * len(numbers_array)
min = 999
for j in range(len(numbers_array)):
for i in range(len(numbers_array)):
sprawdzacz = True
for k in range(j):
if indeksy[k] == i:
sprawdzacz = False
if abs(numbers_array[i]) < abs(min) and sprawdzacz == True:
min = numbers_array[i]
indeksy[j] = i
wynik[j] = min
min = 999
return wynik
Oct. 18, 2017