Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
tomrod
· 6y ago · 0 comments
Eh. You have to assess whether the list is sorted before you destroy the universe, thus increasing the total algorithm runtime complexity.
Comments
[–]
zingermc
6y ago
Yeah, sounds like an O(n) sort to me.
[–]
tomrod
OP
6y ago
In each universe, yes. But if you have m universes...
[–]
swyx
6y ago
That operation is also left as an exercise to the reader
[–]
tomrod
OP
6y ago
A cop out. :)