Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I have doubts that destroying the universe can happen in less than O(N).


That part is constant time. The O(N) is the random shuffle


I imagine it's constant time


You don't have to destroy the universe. Just kill yourself. You'll therefore only exist in universes where the list is sorted. Quantum suicide sort.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: