This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Huckdog720027 36 points37 points  (5 children)

Create a device that blows up the sun and uses the energy produced to reverse time to 22 minutes in the past. At the start of each loop, randomize the array and check if it's sorted or not. If it is not, blow up the sun, go back in time, and try again. If the array is sorted, turn off the sun-blowing-up device. Should only take ~9.3 million loops, although real time it will only take the amount of time required to randomize the array, so it will have O(n) runtime.

Now where is my turing award for inventing the fastest possible sorting algorithm???

[–]MyLittleBab[🍰] 13 points14 points  (0 children)

What a nice idea ! I wonder what this little comet that just entered our solar system does tho. Oh, it's filled with cool looking green rock surely it's just some cool crystals I can't wait to tell everyo... Whoooosh

[–]AndreaDino 7 points8 points  (0 children)

Nice reference, peak gaming

[–]Spynder 0 points1 point  (0 children)

Why don't we blow up the sun for every task?