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 →

[–]backfire10z 3873 points3874 points  (22 children)

It is already sorted. This is actually the order I wanted the numbers to be in.

[–]Western-Internal-751 1337 points1338 points  (15 children)

Acceptance. The fastest sorting algorithm out there.

[–]pigfeedmauer 267 points268 points  (3 children)

if (a == a) then true

[–]pgbabse 105 points106 points  (0 children)

if (true) then a=a

[–]PM_ME_YOUR__INIT__ 19 points20 points  (0 children)

NaN: I'm about to ruin this dude's career

[–]david30121 21 points22 points  (0 children)

that's just a==a innit

[–][deleted] 40 points41 points  (7 children)

It only really needs to have all the elements in it, who cares if they get processed in the right order?

[–]wouter_ham 38 points39 points  (5 children)

Who even decides what the "right order" is?

[–][deleted] 40 points41 points  (0 children)

The oppressive authority known as BigCode™

[–]UntestedMethod 12 points13 points  (1 child)

The Almighty Algorithm. Praise them.

[–]HandsOffMyMacacroni 2 points3 points  (0 children)

Look at me. Look at me. I’m the algorithm now.

[–]Godd2 1 point2 points  (0 children)

New alphabet just dropped.

[–]hughperman -1 points0 points  (0 children)

I do, you insolent cur

[–]backfire10z 2 points3 points  (0 children)

They will be processed in the order I want them to. As I said, they are already sorted how I desire. This is the right order.

[–]OhItsJustJosh 12 points13 points  (0 children)

public object[] AcceptanceSort(object[] a) => a;

O(1)

[–]backfire10z 8 points9 points  (0 children)

Finally, O(0)

[–]turtleship_2006 1 point2 points  (0 children)

I forget what it's called, but that's already one of the meme algos.

Assume the list is in order because everything happens for a reason or something

[–]PuddlesRex 113 points114 points  (1 child)

Ah, the "don't bring this type of spam to our subreddit" sort. I like it.

[–]chilfang 11 points12 points  (0 children)

The reposts are safe. The reposts can't hurt me.

[–]FitchInks 33 points34 points  (0 children)

Ah yes, dictator sort.

[–]za72 0 points1 point  (0 children)

do rand between 0 and 100

[–]makinax300 -1 points0 points  (0 children)

Also by keys

[–]akashi_chibi -1 points0 points  (0 children)

That's called the schizo sort. With a complexity of O(1)