Re:Ask HN: What is the most beautiful piece of code you've e...
by omidmnzadeh on Monday October 28, 2019 @08:10AM
(#21376149)
The problem with this piece of code is not that it doesn't do it in-place. The problem is, if the input list is (almost) constant, then this code will (almost) certainly take quadratic time to sort it, even if it is shuffled before being fed to this function.
However, I get what you mean. It really is beautiful!
However, I get what you mean. It really is beautiful!
EDIT: grammar.