Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
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
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
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
/
Sign in
Sign up
Appearance settings
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 }}
purushottamnawale
/
geeksforgeeks
Public
Notifications
You must be signed in to change notification settings
Fork
3
Star
8
Code
Issues
0
Pull requests
0
Discussions
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
main
Branches
Tags
Go to file
Code
Open more actions menu
Latest commit
History
320 Commits
320 Commits
Folders and files
Name
Name
Last commit message
Last commit date
.vscode
.vscode
Java
Java
.gitignore
.gitignore
AVL Tree Deletion.cpp
AVL Tree Deletion.cpp
Add Binary Strings.cpp
Add Binary Strings.cpp
Adding Ones.cpp
Adding Ones.cpp
Addition of Two Numbers.cpp
Addition of Two Numbers.cpp
Arithmetic Number.cpp
Arithmetic Number.cpp
Armstrong Numbers.cpp
Armstrong Numbers.cpp
Array Operations.cpp
Array Operations.cpp
Arrays (Sum of array).cpp
Arrays (Sum of array).cpp
BFS of graph.cpp
BFS of graph.cpp
Base Conversion.cpp
Base Conversion.cpp
Binary Modulo.cpp
Binary Modulo.cpp
Binary Search.cpp
Binary Search.cpp
Binary Tree to BST.cpp
Binary Tree to BST.cpp
Binary matrix having maximum number of 1s.cpp
Binary matrix having maximum number of 1s.cpp
Bubble Sort.cpp
Bubble Sort.cpp
Bus Conductor.cpp
Bus Conductor.cpp
C++ Array (print an element) Set 2.cpp
C++ Array (print an element) Set 2.cpp
C++ Classes Introduction.cpp
C++ Classes Introduction.cpp
C++ Data Types.cpp
C++ Data Types.cpp
C++ Function overloading.cpp
C++ Function overloading.cpp
C++ Functions (Sum of numbers) Set 1.cpp
C++ Functions (Sum of numbers) Set 1.cpp
C++ Hello World.cpp
C++ Hello World.cpp
C++ Inheritance introduction.cpp
C++ Inheritance introduction.cpp
C++ Multi-level inheritance.cpp
C++ Multi-level inheritance.cpp
C++ Nega Bit.cpp
C++ Nega Bit.cpp
C++ Pointers ( Incrementing a variable) Set 1.cpp
C++ Pointers ( Incrementing a variable) Set 1.cpp
C++ STL Set 1 (vector).cpp
C++ STL Set 1 (vector).cpp
C++ STL Set 2 (pair).cpp
C++ STL Set 2 (pair).cpp
C++ STL Set 4 (stack).cpp
C++ STL Set 4 (stack).cpp
C++ STL Deque.cpp
C++ STL Deque.cpp
C++ STL Priority Queue.cpp
C++ STL Priority Queue.cpp
C++ STL Set 3 (map).cpp
C++ STL Set 3 (map).cpp
C++ STL Set 5 (queue).cpp
C++ STL Set 5 (queue).cpp
C++ STL Set 6 (set).cpp
C++ STL Set 6 (set).cpp
C++ STL Set 7 (unordered map).cpp
C++ STL Set 7 (unordered map).cpp
C++ STL Set 8 (unordered set).cpp
C++ STL Set 8 (unordered set).cpp
C++ complex number addition (operator overloading).cpp
C++ complex number addition (operator overloading).cpp
Celsius to Fahrenheit Conversion.cpp
Celsius to Fahrenheit Conversion.cpp
Check If Circular Linked List.cpp
Check If Circular Linked List.cpp
Check if Tree is Isomorphic.cpp
Check if Tree is Isomorphic.cpp
Check if divisible by 4.cpp
Check if divisible by 4.cpp
Check if divisible by 5.cpp
Check if divisible by 5.cpp
Chocolate Distribution Problem.cpp
Chocolate Distribution Problem.cpp
Choice.cpp
Choice.cpp
Coin Change.cpp
Coin Change.cpp
Convert from any base to decimal.cpp
Convert from any base to decimal.cpp
Count nodes of linked list.cpp
Count nodes of linked list.cpp
Count number of hops.cpp
Count number of hops.cpp
Count the Substrings.cpp
Count the Substrings.cpp
DFS of Graph.cpp
DFS of Graph.cpp
Data Type.cpp
Data Type.cpp
Decimal to binary.cpp
Decimal to binary.cpp
Delete Array.cpp
Delete Array.cpp
Delete a Node in Single Linked List.cpp
Delete a Node in Single Linked List.cpp
Delete middle element of a stack.cpp
Delete middle element of a stack.cpp
Delete nodes having greater value on right.cpp
Delete nodes having greater value on right.cpp
Deque Implementations.cpp
Deque Implementations.cpp
Detect Loop in linked list.cpp
Detect Loop in linked list.cpp
Distinct Difference.cpp
Distinct Difference.cpp
Even Swap.cpp
Even Swap.cpp
Expression contains redundant bracket or not.cpp
Expression contains redundant bracket or not.cpp
Factorial.cpp
Factorial.cpp
Fibonacci Sum.cpp
Fibonacci Sum.cpp
Find Number.cpp
Find Number.cpp
Find Prime numbers in a range.cpp
Find Prime numbers in a range.cpp
Find first set bit.cpp
Find first set bit.cpp
Find kth element of spiral matrix.cpp
Find kth element of spiral matrix.cpp
Find minimum and maximum element in an array.cpp
Find minimum and maximum element in an array.cpp
Find the Frequency.cpp
Find the Frequency.cpp
Find the string in grid.cpp
Find the string in grid.cpp
First Repeating Element.cpp
First Repeating Element.cpp
First and last occurrences of x.cpp
First and last occurrences of x.cpp
First non-repeating character in a stream.cpp
First non-repeating character in a stream.cpp
Flip Bits.cpp
Flip Bits.cpp
For Loop primeCheck.cpp
For Loop primeCheck.cpp
Fraction pairs with sum 1.cpp
Fraction pairs with sum 1.cpp
Frogs and Jumps.cpp
Frogs and Jumps.cpp
Given a linked list of 0s, 1s and 2s, sort it.cpp
Given a linked list of 0s, 1s and 2s, sort it.cpp
Heap Sort.cpp
Heap Sort.cpp
Help Ishaan.cpp
Help Ishaan.cpp
Implement two stacks in an array.cpp
Implement two stacks in an array.cpp
Infix to Postfix.cpp
Infix to Postfix.cpp
Inorder Successor in BST.cpp
Inorder Successor in BST.cpp
Insert a node in a BST.cpp
Insert a node in a BST.cpp
Insert an Element at the Bottom of a Stack.cpp
Insert an Element at the Bottom of a Stack.cpp
Insertion Sort for Singly Linked List.cpp
Insertion Sort for Singly Linked List.cpp
Insertion Sort.cpp
Insertion Sort.cpp
Introduction to Doubly Linked List.cpp
Introduction to Doubly Linked List.cpp
Introduction to Linked List.cpp
Introduction to Linked List.cpp
Introduction to Trees.cpp
Introduction to Trees.cpp
Kadane's Algorithm.cpp
Kadane's Algorithm.cpp
Kth Ancestor in a Tree.cpp
Kth Ancestor in a Tree.cpp
Kth largest element in BST.cpp
Kth largest element in BST.cpp
Largest Element in Array.cpp
Largest Element in Array.cpp
Largest number possible.cpp
Largest number possible.cpp
Largest prime factor.cpp
Largest prime factor.cpp
Leaders in an array.cpp
Leaders in an array.cpp
View all files
Repository files navigation
README
More
items
GeeksforGeeks
Data Structures and Algorithms(DSA) Practice Problem Solutions in C++
About
GeeksforGeeks Practice Problem Solutions
www.geeksforgeeks.org/
Topics
cpp
dsa
geeksforgeeks
gfg
gfg-cpp
gfg-java
gfg-solutions
java
Resources
Readme
Activity
Stars
8
stars
Watchers
1
watching
Forks
3
forks
Report repository
Releases
Packages
Contributors
Languages
You can’t perform that action at this time.