C++ Algorithms

Open-source C++ projects categorized as Algorithms

Top 23 C++ Algorithm Projects

  1. cp-algorithms

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

    Project mention: Algorithms for Competitive Programming | news.ycombinator.com | 2025-01-24
  2. Stream

    Stream - Scalable APIs for Chat, Feeds, Moderation, & Video. Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.

    Stream logo
  3. LeetCode

    This repository contains the solutions and explanations to the algorithm problems on LeetCode. Only medium or above are included. All are written in C++/Python and implemented by myself. The problems attempted multiple times are labelled with hyperlinks.

  4. CGal

    The public CGAL repository, see the README below

  5. LeetCode-Solutions

    🏋️ Python / Modern C++ Solutions of All 3773 LeetCode Problems (Weekly Update)

  6. NumCpp

    C++ implementation of the Python Numpy library

    Project mention: C++ implementation of the Python NumPy library | news.ycombinator.com | 2025-06-21
  7. Interview_DS_Algo

    Super Repository for Coding Interview Preperation

  8. RxCpp

    Reactive Extensions for C++

  9. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  10. EPIJudge

    EPI Judge - Preview Release

  11. etl

    Embedded Template Library

    Project mention: Ask HN: Use C with Classes for Embedded? | news.ycombinator.com | 2025-05-05

    There are alternative STL-like libraries designed for embedded use: https://github.com/ETLCPP/etl

  12. FunctionalPlus

    Functional Programming Library for C++. Write concise and readable C++ code.

  13. CppRobotics

    cpp implementation of robotics algorithms including localization, mapping, SLAM, path planning and control (by onlytailei)

  14. DataStructures-Algorithms

    This repo contains links of resources, theory subjects content and DSA questions & their solution for interview preparation from different websites like geeksforgeeks, leetcode, etc.

  15. verge

    Official Verge Core Source Code Repository :muscle:

  16. LearnCPP

    Learn Cpp from Beginner to Advanced ✅ Practice 🎯 Code 💻 Repeat 🔁 One step solution for c++ beginners and cp enthusiasts.

  17. flux

    A C++20 library for sequence-orientated programming (by tcbrindle)

    Project mention: The Road to Flux 1.0 | news.ycombinator.com | 2025-10-23
  18. CXXGraph

    Header-Only C++ Library for Graph Representation and Algorithms

    Project mention: CXXGraph vs Boost Graph Library: The Complete 2025 Comparison Guide | dev.to | 2025-11-13

    git clone https://github.com/ZigRazor/CXXGraph.git cd CXXGraph/examples g++ -std=c++17 example1.cpp -I../include -o example ./example

  19. Stim

    A fast stabilizer circuit library.

  20. FunnyAlgorithms

    A repository with a bunch of funny algorithms, beginners friendly (by ReciHub)

  21. Algorithms

    Collection of algorithms in multiple programming languages. (by thuva4)

  22. CppRobotics

    Header-only C++ library for robotics, control, and path planning algorithms. Work in progress, contributions are welcome!

  23. think-cell-library

    think-cell core library

  24. SIMDCompressionAndIntersection

    A C++ library to compress and intersect sorted lists of integers using SIMD instructions

  25. Algorithms-And-Data-Structures

    A collection of 100+ projects in C++ and Python that implement various data structures and algorithms. The projects are organized by language and topic, and include detailed explanations and examples to help you understand how they work. (by djeada)

  26. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

C++ Algorithms discussion

C++ Algorithms related posts

  • The Road to Flux 1.0

    1 project | news.ycombinator.com | 23 Oct 2025
  • Let's Take Esoteric Programming Languages Seriously

    2 projects | news.ycombinator.com | 12 Oct 2025
  • Algorithms for Competitive Programming

    1 project | news.ycombinator.com | 24 Jan 2025
  • Huffman Coding

    1 project | news.ycombinator.com | 27 Nov 2024
  • Cgal: A Powerful Open-Source Computational Geometry Library

    1 project | news.ycombinator.com | 6 Aug 2024
  • Competitive Programming

    2 projects | dev.to | 27 Jul 2024
  • Comparing C++ range libraries for filter+reverse case with non-trivial lambda

    6 projects | dev.to | 3 Jun 2024
  • A note from our sponsor - Stream
    getstream.io | 23 Dec 2025
    Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure. Learn more →

Index

What are some of the best open-source Algorithm projects in C++? This list will help you:

# Project Stars
1 cp-algorithms 9,872
2 LeetCode 6,138
3 CGal 5,673
4 LeetCode-Solutions 5,081
5 NumCpp 3,915
6 Interview_DS_Algo 3,523
7 RxCpp 3,154
8 EPIJudge 2,888
9 etl 2,788
10 FunctionalPlus 2,255
11 CppRobotics 2,137
12 DataStructures-Algorithms 2,136
13 verge 1,577
14 LearnCPP 785
15 flux 693
16 CXXGraph 664
17 Stim 601
18 FunnyAlgorithms 502
19 Algorithms 498
20 CppRobotics 488
21 think-cell-library 450
22 SIMDCompressionAndIntersection 440
23 Algorithms-And-Data-Structures 419

Sponsored
Stream - Scalable APIs for Chat, Feeds, Moderation, & Video.
Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.
getstream.io

Did you know that C++ is
the 7th most popular programming language
based on number of references?