omega-rosetta
aien-dev/omega-rosetta
Brought by drakestapleton
omega-rosetta / tasks / heapsort / oracle.py
| 1 | # Independent reference for "Sorting algorithms/Heapsort" (Python 3, standard library only). |
| 2 | # expected.txt is this program's stdout; omc never produced it. |
| 3 | a = [12, -4, 7, 88, 0, 31, -4, 56, 23, 9, -70, 45, 2] |
| 4 | print(*a) |
| 5 | print(*sorted(a)) |