

4·
3 days agoThat would indeed be way (quadratically) more likely but we don’t count the number of attempts but measure run time, and since comparisons (even with optimizations like insertion sort) take time, the speed difference between the two methods will be “just” a few orders of magnitude.
99.999999999999% chance the lava lamp inside your computer is broken.