omega-rosetta
aien-dev/omega-rosetta
Brought by drakestapleton
omega-rosetta / tasks / cocktail-sort-with-shifting-bounds / oracle.py
| 1 | # Independent reference for "Sorting algorithms/Cocktail sort with shifting bounds" (Python 3, standard library only). |
| 2 | # expected.txt is this program's stdout; omc never produced it. |
| 3 | a = [21, -4, 7, 7, 0, 88, -15, 3, 42, 9, 1, -4, 60] |
| 4 | print(*a) |
| 5 | print(*sorted(a)) |