geohot / mergesorts

mergesort in many languages
263 stars 88 forks source link

Mergesort In All Languages

Are you tired of unsorted arrays? Do you wanna smash your keyboard when you see the array:

:facepunch::construction::hear_no_evil:[5,9,1,3,4,6,6,3,2]:facepunch::construction::hear_no_evil:

Well look no further!
We provide the #1 Leading Industry-Proven AI :fireworks: Decentralized :pager: Language-Agnostic :sunglasses: Mergesort Solutions

More seriously

Our goal is to compare the length and "complexity" of the same code in many different languages. Which language is the best? Now we can know.

Functional languages like Scheme and Haskell seem to make much smaller code than Rust, Dart and C#.

And then there's J, which has a 3 line solution. The jury is out if it's readable though.

Getting started

Don't know merge sort algorithm.
Pick up a programming language and try to implement it yourself

Running all of the versions

Install everything you need and run: ./run.sh

Pull Requests

Make sure you have your language running in CI and it uses the list [5,9,1,3,4,6,6,3,2]

New policy: We will only be fixing bugs in already submitted languages. Want to join, pick a new language!