Not my problem sort
Not my problem sort
You still have to check that it’s sorted, which is O(n).
We’ll also assume that destroying the universe takes constant time.
We’ll also assume that destroying the universe takes constant time.
Well yeah just delete the pointer to it!
universe.take()
In Python you just use
import destroy_universeThe creation and destruction of universes is left as an exercise to the reader