Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
C

cp-algorithms

> 编程语言
Open source

Algorithm and data structure articles for https://cp-algorithms.com (based on http://e-maxx.ru)

11.0K stars0 likes0 views
WebsiteGitHub

About

Algorithm and data structure articles for https://cp-algorithms.com (based on http://e-maxx.ru)

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

  • How to Contribute
  • Code of Conduct
  • Test-Your-Page Form

Sponsor Us

  • Become a Financial Supporter

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 marked whether it is translated or original, overall tag info is present 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

  • (9 June 2026) Minimum cut - Stoer-Wagner algorithm
  • (28 March 2026) Centroid decomposition
  • (19 August 2025) Minimum Enclosing Circle
  • (21 May 2025) Simulated Annealing
  • (12 July 2024) Manhattan distance
  • (8 June 2024) Knapsack Problem
  • (28 January 2024) Introduction to Dynamic Programming
  • (8 December 2023) Hungarian Algorithm
  • (10 September 2023) Tortoise and Hare Algorithm
  • (12 July 2023) Finding faces of a planar graph
  • (18 April 2023) Bit manipulation
  • (17 October 2022) Binary Search
  • (17 October 2022) MEX (Minimum Excluded element in an array)
  • (12 May 2022) Factoring Exponentiation
  • (7 May 2022) Knuth's Optimization
  • (31 March 2022) Continued fractions

Full list of updates: Commit History

Full list of articles: Navigation

Issues· 81 open

View all issuesOpen on GitHub
  • #1578

    Problem on article Finding the nearest pair of points

    Updated Sep 26, 2026
  • #1637

    Dry run example for DInic's algorithm

    Updated Sep 26, 2026
  • #1710

    Add Kahn's algorithm

    Updated Sep 25, 2026
  • #1670

    DSU - incorrect application of union by size to other problems?

    Updated Aug 5, 2026
  • #1657

    inconsistency in math

    Updated Jul 12, 2026
  • #1654

    Add C++ implementation for composite k case in `Finding Power of Factorial Divisor` article

    Updated Jul 9, 2026
  • #879

    Sqrt Decomposition notation

    enhancementUpdated Apr 14, 2026
  • #1593

    Easier solution for schedule-with-completion-duration.md

    enhancementUpdated Mar 7, 2026
  • #1606

    Add Hopcroft-Karp Algorithm

    new-article-suggestionUpdated Feb 28, 2026
  • #1585

    Create article: Parity of a Permutation

    Updated Jan 13, 2026

> Tags

C++algorithm-competitionsalgorithmsalgorithms-and-data-structurescompetitive-programming

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 28, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言