Skip to content
Navigation Menu
Toggle navigation
Sign in
Appearance settings
Platform
GitHub Copilot
Write better code with AI
GitHub Spark
New
Build and deploy intelligent apps
GitHub Models
New
Manage and compare prompts
GitHub Advanced Security
Find and fix vulnerabilities
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Discussions
Collaborate outside of code
Code Search
Find more, search less
Explore
Why GitHub
Documentation
GitHub Skills
Blog
Integrations
GitHub Marketplace
MCP Registry
View all features
Solutions
By company size
Enterprises
Small and medium teams
Startups
Nonprofits
By use case
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
By industry
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
Topics
AI
DevOps
Security
Software Development
View all
Explore
Learning Pathways
Events & Webinars
Ebooks & Whitepapers
Customer Stories
Partners
Executive Insights
Open Source
GitHub Sponsors
Fund open source developers
The ReadME Project
GitHub community articles
Repositories
Topics
Trending
Collections
Enterprise
Enterprise platform
AI-powered developer platform
Available add-ons
GitHub Advanced Security
Enterprise-grade security features
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search or jump to...
Search code, repositories, users, issues, pull requests...
Search syntax tips
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Sign in
Sign up
Appearance settings
Resetting focus
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
TheAlgorithms
/
C-Plus-Plus
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
7.6k
Star
33.1k
Code
Issues
11
Pull requests
24
Discussions
Actions
Projects
1
Security
Uh oh!
There was an error while loading.
Please reload this page
.
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security
Insights
Commits
Branch selector
master
User selector
All users
Datepicker
All time
Commit History
Commits on Oct 1, 2025
ci: fix permissions issue with approved-label (#3017)
Show description for ba0d3ff
realstealthninja
authored
ba0d3ff
Copy full SHA for ba0d3ff
ci: use a different action forlabelling on pr approval. (#3016)
realstealthninja
authored
b5d818b
Copy full SHA for b5d818b
correct grammar and wording in contribution guidelines (#3012)
Rudra2637
authored
3502150
Copy full SHA for 3502150
Commits on Sep 27, 2025
ci: bump codeql to v3 (#3008)
realstealthninja
authored
be550cd
Copy full SHA for be550cd
chore: fix file formatter (#3007)
Show description for 47badd9
realstealthninja
authored
47badd9
Copy full SHA for 47badd9
style: remove interaction with the user (#3006)
Show description for 643e0a9
vil02
and
realstealthninja
authored
643e0a9
Copy full SHA for 643e0a9
Fix: use uint64_t for input and counter in countSetBits (#3003)
Show description for 8541bb3
Rudra2637
and
realstealthninja
authored
8541bb3
Copy full SHA for 8541bb3
Commits on Sep 26, 2025
fix: handle wrong inputs in `postfix_evaluation` (#3005)
vil02
authored
e72b7aa
Copy full SHA for e72b7aa
Commits on Sep 25, 2025
refactor: input size should not be a template argument in `postfix_evaluation` (#2996)
vil02
authored
07663b0
Copy full SHA for 07663b0
Commits on Sep 24, 2025
Added a bit manipulation program to determine even or odd numbers (#2959)
Show description for 0301b4c
git5v
and
realstealthninja
authored
0301b4c
Copy full SHA for 0301b4c
Commits on Sep 10, 2025
fix: remove potential segv from `postfix_evaluation.cpp` (#2995)
vil02
authored
3aafade
Copy full SHA for 3aafade
Commits on Sep 5, 2025
fix: remove potential segmentation fault from `factorial_memoization.cpp` (#2994)
vil02
authored
43ce636
Copy full SHA for 43ce636
Commits on Sep 4, 2025
doc: fix a typo in ccl.h(#2993)
Show description for 63aa859
9santa
and
realstealthninja
authored
63aa859
Copy full SHA for 63aa859
style: remove unused variable (#2991)
vil02
authored
651d622
Copy full SHA for 651d622
Commits on Sep 1, 2025
style: resolve `-Wunused-parameter` (#2990)
vil02
authored
35b1bcb
Copy full SHA for 35b1bcb
Commits on Aug 24, 2025
doc: update versions in readme (#2987)
realstealthninja
authored
0bd697d
Copy full SHA for 0bd697d
Commits on Aug 23, 2025
feat: Add memoized version of factorial (#2964)
Show description for f1ff652
git5v
and
realstealthninja
authored
f1ff652
Copy full SHA for f1ff652
Commits on Aug 22, 2025
ci: add pull_request write permission (#2985)
realstealthninja
authored
4d1aa26
Copy full SHA for 4d1aa26
Commits on Aug 19, 2025
chore: make acceleration due to gravity a constexpr (#2982)
Show description for c39d84b
kaushalsawariya
authored
c39d84b
Copy full SHA for c39d84b
Commits on Aug 18, 2025
fix: initialise `key` to avoid undefined behaviour (#2984)
vil02
authored
c917fc4
Copy full SHA for c917fc4
Commits on Aug 17, 2025
feat: add algorithm to find the number of paths in a graph using DFS (#2815)
Show description for b30bdd3
3 people
authored
b30bdd3
Copy full SHA for b30bdd3
fix: use strict inequality to avoid `containerOutOfBounds` (#2981)
vil02
authored
93c64b5
Copy full SHA for 93c64b5
Commits on Aug 16, 2025
docs: update DIRECTORY.md (#2980)
Show description for a77ce5c
github-actions[bot]
and
realstealthninja
authored
a77ce5c
Copy full SHA for a77ce5c
fix: resize `array` to avoid `arrayIndexOutOfBounds` (#2979)
vil02
authored
6393130
Copy full SHA for 6393130
Commits on Aug 15, 2025
feat: implement optimized two-pointer approach for trapping rainwater (#2975) (#2976)
Show description for 145111c
kanavgoyal898
and
realstealthninja
authored
145111c
Copy full SHA for 145111c
chore: try to comply to C++20 (#2978)
Show description for 79aeaa9
realstealthninja
authored
79aeaa9
Copy full SHA for 79aeaa9
chore: sort subdirectories (#2949)
Show description for e9caade
vil02
and
realstealthninja
authored
e9caade
Copy full SHA for e9caade
style: resolve `-Wreorder` (#2950)
Show description for 6568ab9
vil02
and
realstealthninja
authored
6568ab9
Copy full SHA for 6568ab9
Fixed name space problem by removing using namespace std (#2966)
Show description for 13306be
3 people
authored
13306be
Copy full SHA for 13306be
style: remove unused params of `main` (#2948)
Show description for fb27d4d
vil02
and
realstealthninja
authored
fb27d4d
Copy full SHA for fb27d4d
Commits on Aug 14, 2025
style: remove unused variables (#2946)
Show description for d4962c3
vil02
and
realstealthninja
authored
d4962c3
Copy full SHA for d4962c3
style: remove unused `array` includes (#2947)
vil02
authored
3f0409d
Copy full SHA for 3f0409d
Commits on Jul 9, 2025
Couple of issues and areas for improvement. (#2841)
Show description for f1eddf4
pipinstallaadit
and
realstealthninja
authored
f1eddf4
Copy full SHA for f1eddf4
Commits on May 25, 2025
style: remove unused `vector` includes (#2945)
vil02
authored
93a700c
Copy full SHA for 93a700c
Commits on May 19, 2025
docs: add time and space complexity to quick_sort.cpp (#2819)
Show description for da53b26
jiya10208
and
realstealthninja
authored
da53b26
Copy full SHA for da53b26
Pagination
Previous
Next
You can’t perform that action at this time.