Algorithm and data structure articles for https://cp-algorithms.com (based on http://e-maxx.ru) https://cp-algorithms.com/
  • C++ 43.3%
  • Python 36.9%
  • CSS 6.5%
  • JavaScript 3.9%
  • HTML 3.6%
  • Other 5.8%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Akram 9392ad98aa
Merge pull request #1771 from cp-algorithms/fix-mobile-math-overflow
Stop math from making pages wider than the screen
2026-11-19 22:55:06 +09:00
.devin Devin config 2025-11-19 15:07:38 +01:00
.github Build the site with Zensical (#1747) 2026-11-08 19:02:40 +01:00
preview Add literate-nav plugin 2022-06-05 23:59:44 +02:00
scripts Build the site with Zensical (#1747) 2026-11-08 19:02:40 +01:00
src Revert "Show inline formulas wider than a phone as display math" 2026-11-19 21:02:46 +09:00
test Add a parallel binary search section (#1700) 2026-09-19 13:59:27 +02:00
.firebaserc add firebase deploy infos 2021-08-14 15:45:57 +02:00
.gitignore Build the site with Zensical (#1747) 2026-11-08 19:02:40 +01:00
AGENTS.md Allow math in headings in the agent guidelines 2026-11-11 22:09:55 +09:00
CONTRIBUTING.md Build the site with Zensical (#1747) 2026-11-08 19:02:40 +01:00
firebase.json add firebase deploy infos 2021-08-14 15:45:57 +02:00
LICENSE Add CC BY-SA license to the project 2016-11-27 23:30:46 -08:00
mkdocs.yml Build the site with Zensical (#1747) 2026-11-08 19:02:40 +01:00
README.md Apply plain-writing rules to contributor docs (#1745) 2026-11-08 16:53:09 +01:00
SECURITY.md Apply plain-writing rules to contributor docs (#1745) 2026-11-08 16:53:09 +01:00

Algorithms for Competitive Programming

Contributors Pull Requests Closed Pull Requests Build Translation Progress

This project translates e-maxx.ru/algo into English. It describes algorithms and data structures that are popular in competitive programming. We also extend the translated articles and add new ones.

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 \LaTeX source code of formulas within the articles.
  • June 8, 2022: Tags are enabled. Each article is now tagged as translated or original. All tags are listed in the tag index. For translated articles, clicking on From: X tag would lead to the original article.
  • June 7, 2022: Date of last commit and author list with contribution percentage is tracked for each page.
  • June 5, 2022: Enabled content tabs and sidebar navigation. The navigation is moved to a separate page and its structure should be adjusted in navigation.md whenever a new article is created or an old one is moved.
  • January 16, 2022: Switched to the MkDocs site generator with the Material for MkDocs theme, which give the website a more modern look, brings a couple of new features (dark mode, better search, ...), makes the website more stable (in terms of rendering math formulas), and makes it easier to contribute.

New articles

Full list of updates: Commit History

Full list of articles: Navigation