thealgorithms/c-plus-plus

Collection of various algorithms in mathematics, machine learning, computer science and physics implemented in C++ for educational purposes.

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 51 minutes ago
Added to GitGenius on September 1st, 2026
Created on July 16th, 2016
Open Issues & Pull Requests: 25 (+0)
GitHub issues: Enabled
Number of forks: 7,861
Total Stargazers: 34,639 (+0)
Total Subscribers: 514 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 3.4 days
Mean response time: 11.3 days
90th percentile: 31.7 days
Tracked items: 57

How this project is maintained

Around half of the issues opened in the past year never receive a reply. Work labelled "dont-close" is answered fastest, typically in about 14 hours, while "bug" waits about 2 weeks. Only 10% of issues opened in the past year have been closed. Three people close 86% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 10
New in 7 days: 1
Closed in 7 days: 1
Avg open age: 964 days
Stale 30+ days: 5
Stale 90+ days: 4

Recent activity

Opened in 7 days: 1
Closed in 7 days: 1
Comments in 7 days: 1
Events in 7 days: 2

Top labels

  • enhancement (44)
  • stale (39)
  • bug (14)
  • dont-close (10)
  • awaiting triage (5)
  • hacktoberfest (3)
  • good first issue (2)
  • help wanted (2)

Detailed Description

The Algorithms - C++ is a collection of algorithm implementations in C++ for educational purposes.

The repository addresses the need for clear, accessible implementations of algorithms across computer science, mathematics, machine learning, and physics. It solves the problem of learning algorithms by providing well-documented source code with detailed explanations. The approach uses only C++ Standard Template Library classes with no external dependencies, allowing students and educators to study algorithm fundamentals in depth. Each implementation is self-contained and includes self-checks to verify correctness.

This tool suits students preparing for interviews, educators developing course materials, and anyone learning algorithms through practical C++ examples. It works well for those who want to understand algorithm mechanics without wrestling with external library dependencies. The repository is particularly valuable for embedded systems work, as strict adherence to C++17 standard ensures code can run on platforms like ESP32 and ARM Cortex with minimal changes. The collection intentionally includes multiple implementations of the same objective using different algorithm strategies and optimizations, giving learners exposure to various approaches.

Development activity shows consistent attention to code quality and portability. The project compiles and tests implementations on Windows, macOS, and Linux using current compiler versions for every commit. Documentation is automatically generated from source code and includes code snippets, execution details, program flow diagrams, and links to relevant C++ Standard Library resources. The modular design and open-source licensing enable implementations to be extracted and used in other applications.