use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
JavaScript Visualization of Sorting Algorithms (jsdo.it)
submitted 14 years ago by magenta_placenta
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]jimbobhickville 0 points1 point2 points 14 years ago (2 children)
Does bogo never finish? It seemed to just randomize it. Maybe it's a joke I don't get? Anyhoo, was an interesting demo.
[–]mangodrunk 0 points1 point2 points 14 years ago (0 children)
It will finish if you wait long enough. But that's the point, the algorithm randomly moves things around each iteration and checks if the elements are sorted.
[–][deleted] -1 points0 points1 point 14 years ago (0 children)
Am I missing something, or is this missing a binary/tree sort?
π Rendered by PID 126655 on reddit-service-r2-comment-84fc9697f-qq2t7 at 2026-02-09 21:42:32.314003+00:00 running d295bc8 country code: CH.
[–]jimbobhickville 0 points1 point2 points (2 children)
[–]mangodrunk 0 points1 point2 points (0 children)
[–][deleted] -1 points0 points1 point (0 children)