Stanford University lecturer Keith Schwarz (Keith Schwarz) has been replenishing his archive of interesting code for several years - samples of the best algorithms and data structures ever invented by mankind (Schwartz very ambitiously assesses his collection).
The examples on the site are mostly encoded in C ++, since STL provides an excellent base for expressing algorithms that work with different data types. Data structures are implemented in Java.
Keith Schwartz gives permission to use his code to anyone without any restrictions. Each code example of Keith Schwartz adds a detailed commentary, explaining each line and all aspects of the whole concept. ')
There are serious things in the collection: Dijkstra's algorithm (Java) or the Haar wavelet , as well as simply interesting code examples, like the Snake game (C ++) .
Work Schwartz has just begun. So far, only a small part of the algorithms and data structures that the author plans to process in the future is ready: see his TODO list . According to Keith himself, the list more often increases than decreases. Bold in the list marked algorithms that are planned to be implemented in the near future.