one-line-wonders icon indicating copy to clipboard operation
one-line-wonders copied to clipboard

One-Line Sort Algorithms

Open wzhouwzhou opened this issue 6 years ago • 3 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.

wzhouwzhou avatar Oct 21 '18 15:10 wzhouwzhou

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

vishal-wadhwa avatar Oct 21 '18 17:10 vishal-wadhwa

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

wzhouwzhou avatar Oct 21 '18 17:10 wzhouwzhou

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

kannagikazuko avatar Oct 22 '18 01:10 kannagikazuko