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 }}
Nanduag0
Leetcode
Repository navigation
Code
Issues
Pull requests
1
(1)
Actions
Projects
Security and quality
Insights
More
items
Leetcode
Public
Notifications
You must be signed in to change notification settings
Fork
6
(
6
)
Star
4
(
4
)
You must be signed in to star a repository
About
Leetcode Cpp solutions
Topics
hacktoberfest
Resources
Readme
Activity
Stars
4
stars
Watchers
1
watching
Forks
6
forks
Report repository
master
Branches
Tags
Go to file
Code
Open more actions menu
Latest commit
History
1,014 Commits
1,014 Commits
Folders and files
Name
Name
Last commit message
Last commit date
nandcpp
nandcpp
nandincpp
nandincpp
.Maximize Number of Nice Divisors.cpp
.Maximize Number of Nice Divisors.cpp
0-1Knapsack.txt
0-1Knapsack.txt
01MatrixorDistanceofNearestCellHavingOne.txt
01MatrixorDistanceofNearestCellHavingOne.txt
132_Pattern.txt
132_Pattern.txt
3sumproblem.txt
3sumproblem.txt
4SumII.txt
4SumII.txt
AddDigits.txt
AddDigits.txt
AddTwoNumbersRepresentedByLinkedList_Geeks.txt
AddTwoNumbersRepresentedByLinkedList_Geeks.txt
Additive_NUmbers.txt
Additive_NUmbers.txt
All-problems.docx
All-problems.docx
All-problems.pdf
All-problems.pdf
All_Paths_From_Source_To_Target.txt
All_Paths_From_Source_To_Target.txt
ArithmeticNumber.txt
ArithmeticNumber.txt
Arithmetic_Easier_Solution_using_dp.txt
Arithmetic_Easier_Solution_using_dp.txt
As_Far_From_Land_As_Possible.txt
As_Far_From_Land_As_Possible.txt
Assign_Cookies.txt
Assign_Cookies.txt
AverageWaitingTime.txt
AverageWaitingTime.txt
BBT_Counter.txt
BBT_Counter.txt
BFSOFAGRAPH_GEEKS.txt
BFSOFAGRAPH_GEEKS.txt
BalanceABinarySearchTree.txt
BalanceABinarySearchTree.txt
BalanceABinaryTree.txt
BalanceABinaryTree.txt
BattleShips_In_A_Board.txt
BattleShips_In_A_Board.txt
BernKenighamAlgo_geeks.txt
BernKenighamAlgo_geeks.txt
BestTimeToBuy&SellStock(II).txt
BestTimeToBuy&SellStock(II).txt
BinarySearchTreeToGreaterSumTree.txt
BinarySearchTreeToGreaterSumTree.txt
BinaryTreePaths.txt
BinaryTreePaths.txt
BinaryTreeToBST.txt
BinaryTreeToBST.txt
Binary_Gap.txt
Binary_Gap.txt
Binomial_Coefficient.txt
Binomial_Coefficient.txt
Biparite_graph.txt
Biparite_graph.txt
Bit Difference.txt
Bit Difference.txt
BottomLeftSubTree.txt
BottomLeftSubTree.txt
BoundaryTraversaOfATree.txt
BoundaryTraversaOfATree.txt
BreakAPalindrome.txt
BreakAPalindrome.txt
Bridge_Edge_In_A_Graph.txt
Bridge_Edge_In_A_Graph.txt
BrothersFromDifferentRoot.txt
BrothersFromDifferentRoot.txt
CLone_of_a_graph.txt
CLone_of_a_graph.txt
CanMakePalindromeFromSubstring.txt
CanMakePalindromeFromSubstring.txt
CanPlaceFlowers.txt
CanPlaceFlowers.txt
CandyStore.txt
CandyStore.txt
Celebrity_Problem.txt
Celebrity_Problem.txt
Check If Link List is a Palindrome.txt
Check If Link List is a Palindrome.txt
Check if Binary String Has at Most One Segment of Ones.txt
Check if Binary String Has at Most One Segment of Ones.txt
CheckIFTreeIsIsomorphic.txt
CheckIFTreeIsIsomorphic.txt
CheckIfAStringContainBinaryCodeOfLengthK.txt
CheckIfAStringContainBinaryCodeOfLengthK.txt
CheckIfCircularLinkedList.txt
CheckIfCircularLinkedList.txt
CheckIfTreeIsBalanced.txt
CheckIfTreeIsBalanced.txt
CheckIfWordIsValidAfterSubstrition.txt
CheckIfWordIsValidAfterSubstrition.txt
ChoclateDistributionProblem.txt
ChoclateDistributionProblem.txt
ChooseAndSwap.txt
ChooseAndSwap.txt
Circular Tour _Geeks.txt
Circular Tour _Geeks.txt
CoinChange.txt
CoinChange.txt
CoinChange_MinimumNoofCoins.txt
CoinChange_MinimumNoofCoins.txt
Coin_Change_Two_Minimum_No_OF_Ways.txt
Coin_Change_Two_Minimum_No_OF_Ways.txt
Coingameplayerwhereeveryplayerhasthreechoices.txt
Coingameplayerwhereeveryplayerhasthreechoices.txt
CombinationSumIV.txt
CombinationSumIV.txt
CombinationSum_Backtracking.cpp
CombinationSum_Backtracking.cpp
CombinationSum_Backtracking.txt
CombinationSum_Backtracking.txt
CommonElements.txt
CommonElements.txt
CompareVersionNumbers.txt
CompareVersionNumbers.txt
Construct A Tree From Inorder and PostOrder.txt
Construct A Tree From Inorder and PostOrder.txt
ConstructBSTFromPreOrderTraversal.txt
ConstructBSTFromPreOrderTraversal.txt
ConstructBinaryTreeFromInorder&PostOrder.txt
ConstructBinaryTreeFromInorder&PostOrder.txt
ConstructBinarytreeFromPreorder&Inorder.txt
ConstructBinarytreeFromPreorder&Inorder.txt
Container With Most Water.cpp
Container With Most Water.cpp
ContainsDuplicateIII.txt
ContainsDuplicateIII.txt
ConvertBinaryTreeToIts Sumtree.txt
ConvertBinaryTreeToIts Sumtree.txt
ConvertSortedListToBinarySearchTree.txt
ConvertSortedListToBinarySearchTree.txt
Copy_Set_Bits_In_Range.txt
Copy_Set_Bits_In_Range.txt
Count No of HomogenousString.cpp
Count No of HomogenousString.cpp
Count No of HomogenousString.txt
Count No of HomogenousString.txt
Count&Say.cpp
Count&Say.cpp
Count&Say.txt
Count&Say.txt
CountBSTThatLieInGivenRAnge.txt
CountBSTThatLieInGivenRAnge.txt
CountBinaryStrings.txt
CountBinaryStrings.txt
CountGoodmeals.txt
CountGoodmeals.txt
CountInversions.txt
CountInversions.txt
CountSquares.txt
CountSquares.txt
CountThenoofConsistentStrings.cpp
CountThenoofConsistentStrings.cpp
CountThenoofConsistentStrings.txt
CountThenoofConsistentStrings.txt
CountTotalSetBits_GeeksBits.txt
CountTotalSetBits_GeeksBits.txt
CountTripletsWithSumLessThanSum.txt
CountTripletsWithSumLessThanSum.txt
Count_Dearrangment.txt
Count_Dearrangment.txt
Count_Largest_Group.txt
Count_Largest_Group.txt
Count_No_with_unique_digits.txt
Count_No_with_unique_digits.txt
Count_Pairs_With_given_sum.txt
Count_Pairs_With_given_sum.txt
Count_Subsequences_having_product_less_than_k.txt
Count_Subsequences_having_product_less_than_k.txt
Count_good_numbers.txt
Count_good_numbers.txt
Count_squre_submatrix_with_one.txt
Count_squre_submatrix_with_one.txt
CountthReversals_Geeks.txt
CountthReversals_Geeks.txt
CourseScheduleII.txt
CourseScheduleII.txt
CourseScheduleIV.txt
CourseScheduleIV.txt
Course_Schedule.txt
Course_Schedule.txt
Critical_Connections_in_a_network.txt
Critical_Connections_in_a_network.txt
Decode XORed Array.cpp
Decode XORed Array.cpp
Decode_Strings.txt
Decode_Strings.txt
Delete and Earn.cpp
Delete and Earn.cpp
DeleteANodeINABST.txt
DeleteANodeINABST.txt
View all files
Repository files navigation
README
More
items
Leetcode Solutions of various topics + Geeks
About
Leetcode Cpp solutions
Topics
hacktoberfest
Resources
Readme
Activity
Stars
4
stars
Watchers
1
watching
Forks
6
forks
Report repository
Releases
Packages
Contributors
Languages
You can’t perform that action at this time.