most efficient sorting algorithm ever

Discussion in 'Off-Topic' started by magnet18, Jan 20, 2015.

  1. magnet18

    Thread Starter Senior Member

    Dec 22, 2010
    1,232
    124
  2. cmartinez

    AAC Fanatic!

    Jan 17, 2007
    3,574
    2,545
    It's been years (more than 20) since I programmed in C... wish your code was in Visual Basic so I could understand it better...
     
  3. magnet18

    Thread Starter Senior Member

    Dec 22, 2010
    1,232
    124
    it's a joke, basically it randomly shuffles until it's sorted
     
  4. WBahn

    Moderator

    Mar 31, 2012
    17,777
    4,804
    I have a better algorithm:

    Step 1: Take a sorted list.
    Step 2: Output list.
     
  5. cmartinez

    AAC Fanatic!

    Jan 17, 2007
    3,574
    2,545
    Only two steps!... that must be a record...
     
Loading...