[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y / ] [Home]
4chanarchives logo

How does reddit come up with such useless shit?From /r/programmerhumor, a sorting


Thread replies: 13
Thread images: 2

File: half.png (38KB, 700x404px) Image search: [Google] [Yandex] [Bing]
half.png
38KB, 700x404px
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
>>
>>52112901
public int[] whocares(int[] dontcare) {
return dontcare
}


Now atleast 1000 ms faster!
>>
>>52112901
I don't get it.
>>
File: 1450992261693.jpg (104KB, 725x635px) Image search: [Google] [Yandex] [Bing]
1450992261693.jpg
104KB, 725x635px
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
>>
>>52111111
>>
>>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"?
Thread replies: 13
Thread images: 2
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y / ] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
If a post contains illegal content, please click on its [Report] button and follow the instructions.
This is a 4chan archive - all of the content originated from them. If you need information for a Poster - you need to contact them.
This website shows only archived content and is not affiliated with 4chan in any way.
If you like this website please support us by donating with Bitcoin at 1XVgDnu36zCj97gLdeSwHMdiJaBkqhtMK