How does reddit come up with such useless shit?
From /r/programmerhumor, a sorting algorithm,
"O(1) complexity with only one drawback"
Snorlax Sort on github...
>Snorlax's drawback for its incredible efficiency is that it is not 100% accurate.
Fuckin' starred
>>52111117/** Snorlax's sorting algorithm.
*
* @param snorlax Integer Array passed to Snorlax for sorting.
* @return The usualy* sorted input. *See readme for more information*
*/
public int[] sort(int[] snorlax) {
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
// Don't worry about it, just enjoy your nap.
}
return snorlax;
}
fuck off dumb pokemon poster
Ok that's pretty funny.
Meanwhile on /g/humor
>APPLE IS GAY
>LOL
>>52112901public int[] whocares(int[] dontcare) {
return dontcare
}
Now atleast 1000 ms faster!
>>52112901
I don't get it.
Isnt this just sleepsort?
Because if so then 4chan did it first:
https://web.archive.org/web/20110619015422/http://flarsen.com/sleep_sort.php
>>52113429
But Apple is gay you retard
>>52111117
>going to Reddit
>>52113506
Not even that. sleepsort is at least somewhat inteteresting in that it actually will sort the input.
This is somewhat like http://dangermouse.net/esoteric/intelligentdesignsort.html but a lot less funny
>>52113506
>https://web.archive.org/web/20110619015422/http://flarsen.com/sleep_sort.php
Holy shit, that's actually amazing.
I don't get OP's shit at all, though. Is there an actual joke, or is it xkcd style "it's funny because pop-culture reference"?