wzhouwzhou / one-line-wonders

OneLineWondersCode | 1000+ Commits | 279/300 One Liners | 200+ Forks | Actively maintained open-source collection of "one-line" programs performing various tasks in different languages

Home Page:https://hacktoberfest2018.suya.moe

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

One-Line Sort Algorithms

wzhouwzhou opened this issue · comments

This was first demonstrated in #5 (1 line quicksort in haskell) but are other sorting algorithms (ie merge, bubble, heap, bucket, radix, selection, etc) also possible in "one line" (in any language)? If not "one line", what's the shortest you think you can make it? I think this would be a cool task for people to try and complete.

I'd like to submit a one-liner python code for selection-ish sort. Let me know if I should proceed. :)
Thanks

Thats totally cool, I'd love to see how it could be done! @vishal-wadhwa

Just tagging #73, a one-line implementation of bubble sort in C (and our first program in C).