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 168 of 209[-]yangmaster8 years ago1 reply#Fisher-Yates shuffle. An elegant and surprisingly intuitive O(n) algorithm that doesn't take up extra memory.malingo8 years ago#Check out Sattolo's algorithm as well. Good writeup here: https://danluu.com/sattolo/
Ask HN: What's your favorite elegant/beautiful algorithm?733 pointsby algobuddy (on Hacker News)8 years ago
yangmaster8 years ago1 reply#Fisher-Yates shuffle. An elegant and surprisingly intuitive O(n) algorithm that doesn't take up extra memory.
malingo8 years ago#Check out Sattolo's algorithm as well. Good writeup here: https://danluu.com/sattolo/
Comments (491) 209 threads
Show all comments
Showing thread 168 of 209