2 ms·
Even without destroying the universe you can sort your list with a quantum source of entropy, just use: def cosmicraysort(list): while not sorted(l
by contravariant 5y ago
Even without destroying the universe you can sort your list with a quantum source of entropy, just use:
def cosmicraysort(list):
while not sorted(list):
pass
- flipflip 5y agoYou can just kill the observer. Quantum immortality sort: def qisort(list): qshuffle(list) if not sorted(list): kill_observer() Only in the universe in which th the list is sorted, the user will survive. There might be no such universe, but then the user is no longer waiting on the result.