Back to front pageView on Hacker News (opens in a new tab)Ask HN: What's your favorite elegant/beautiful algorithm?733 pointsby algobuddy (on Hacker News)8 years agoComments (491) 209 threadsShow all commentsShowing thread 34 of 209[-]vagab0nd8 years ago1 reply#Quickselect. Very elegant, fast and solves the problem. I'm surprised many people don't know about it.https://en.m.wikipedia.org/wiki/Quickselectgct8 years ago#In the tradition of naming things terribly this is called std::nth_element in C++
Ask HN: What's your favorite elegant/beautiful algorithm?733 pointsby algobuddy (on Hacker News)8 years ago
vagab0nd8 years ago1 reply#Quickselect. Very elegant, fast and solves the problem. I'm surprised many people don't know about it.https://en.m.wikipedia.org/wiki/Quickselect
Comments (491) 209 threads
Show all comments
Showing thread 34 of 209
https://en.m.wikipedia.org/wiki/Quickselect