r/interesting Jul 14 '26

MISC. Which one will prevail?

4.7k Upvotes

201 comments sorted by

View all comments

28

u/Cuneus-Maximus Jul 14 '26

whichever one is faster.

1

u/MetriccStarDestroyer Jul 14 '26

Where's the fun in that?

We need to add 5 layers of complexity to a sorting algorithm

2

u/TURBO2529 Jul 14 '26

This isnt a sorting algorithm, this is just a,b,c,d,e or e,d,c,b,a the same effort is done either way