Algorithms for Competitive Programming
The goal of this project is to translate the wonderful resource https://e-maxx.ru/algo which provides descriptions of many algorithms and data structures especially popular in field of competitive programming. Moreover we want to improve the collected knowledge by extending the articles and adding new articles to the collection.
We're an ad-free, volunteer-run website that's free for everyone. Users can contribute articles or help sponsor bounties on articles for greater algorithmic coverage. Your help is greatly appreciated.
Compiled pages are published at https://cp-algorithms.com/.
Become a Contributor
Sponsor Us
Changelog
- August, 2025: Overhaul of CP-Algorithms donation system. Please consider supporting us, so that we can grow!
- August, 2025: Launched a Discord server!
- October, 2024: Welcome new maintainers: jxu, mhayter and kostero!
- October, 15, 2024: GitHub pages based mirror is now served at https://gh.cp-algorithms.com/, and an auxiliary competitive programming library is available at https://lib.cp-algorithms.com/.
- July 16, 2024: Major overhaul of the Finding strongly connected components / Building condensation graph article.
- June 26, 2023: Added automatic RSS feeds for new articles and updates in articles.
- December 20, 2022: The repository name and the owning organizations were renamed! Now the repo is located at https://github.com/cp-algorithms/cp-algorithms. It is recommended to update the upstream link in your local repositories, if you have any.
- October 31, 2022: It is now possible to select and copy