one-line-wonders
one-line-wonders copied to clipboard
One-Line Sort Algorithms
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).