This is potentially the fastest algorithm since a miracle *could* happen in the first try.
Which means it is also possibly the best way to turn your life around 😉
Qwippi on
Isn’t the space still O(N)?
Rutakate97 on
If you rely on cosmic rays to sort out the indexing of your array, there is an almost certain chance that the code that executes the check gets corrupted and crashes before the array gets sorted. It would be quite a miracle indeed.
3 Comments
This is potentially the fastest algorithm since a miracle *could* happen in the first try.
Which means it is also possibly the best way to turn your life around 😉
Isn’t the space still O(N)?
If you rely on cosmic rays to sort out the indexing of your array, there is an almost certain chance that the code that executes the check gets corrupted and crashes before the array gets sorted. It would be quite a miracle indeed.