I really like sleepsort and sometimes ask interviewees to implement it during interviews. In JavaScript, its simple to implement and reinforces the asynchronous nature of the language. Its fun and usually gets a good laugh.
HN is great. There are so many fun algorithms listed here. My favorites are already mentioned but a few important ones are missing:
Boyer-Moore fast substring searching. Simple to understand and has great performance. [1] Alpha-Beta game tree search. I really like Knuth’s paper on it. [2] [1] https://en.m.wikipedia.org/wiki/Boyer–Moore_string-search_al... [2] Artificial Intelligence
Volume 6, Issue 4, Winter 1975, Pages 293-326
Comments (491) 209 threads
Earlier commentsand
- Marching Cubes
Boyer-Moore fast substring searching. Simple to understand and has great performance. [1]
Alpha-Beta game tree search. I really like Knuth’s paper on it. [2]
[1] https://en.m.wikipedia.org/wiki/Boyer–Moore_string-search_al...
[2] Artificial Intelligence Volume 6, Issue 4, Winter 1975, Pages 293-326
All comments shown.
Couldn't load more comments. Check your connection and try again.