Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
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 }}
VallabhiGoyal
leetcode-solution
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
More
items
leetcode-solution
Public
Notifications
You must be signed in to change notification settings
Fork
0
(
0
)
Star
0
(
0
)
You must be signed in to star a repository
About
No description, website, or topics provided.
Activity
Stars
0
stars
Watchers
0
watching
Forks
0
forks
Report repository
main
Branches
Tags
Go to file
Code
Open more actions menu
Latest commit
History
1,245 Commits
1,245 Commits
Folders and files
Name
Name
Last commit message
Last commit date
1-TwoSum
1-TwoSum
100-SameTree
100-SameTree
1001-NRepeatedElementInSize2nArray
1001-NRepeatedElementInSize2nArray
1005-UnivaluedBinaryTree
1005-UnivaluedBinaryTree
1008-ConstructBinarySearchTreefromPreorderTraversal/
version/
java
1008-ConstructBinarySearchTreefromPreorderTraversal/
version/
java
101-SymmetricTree
101-SymmetricTree
1013-FibonacciNumber
1013-FibonacciNumber
102-BinaryTreeLevelOrderTraversal
102-BinaryTreeLevelOrderTraversal
1025-MinimumCostForTickets
1025-MinimumCostForTickets
1027-LongestArithmeticSubsequence/
version/
java
1027-LongestArithmeticSubsequence/
version/
java
1027-SumOfEvenNumbersAfterQueries
1027-SumOfEvenNumbersAfterQueries
1029-VerticalOrderTraversalOfABinaryTree
1029-VerticalOrderTraversalOfABinaryTree
103-BinaryTreeZigzagLevelOrderTraversal
103-BinaryTreeZigzagLevelOrderTraversal
1035-CousinsInBinaryTree
1035-CousinsInBinaryTree
1036-RottingOranges
1036-RottingOranges
104-MaximumDepthOfBinaryTree
104-MaximumDepthOfBinaryTree
104-MaximumDepthofBinaryTree/
version/
java
104-MaximumDepthofBinaryTree/
version/
java
1041-AvailableCapturesForRook
1041-AvailableCapturesForRook
1046-LastStoneWeight/
version/
java
1046-LastStoneWeight/
version/
java
1046-MaxConsecutiveOnesIii
1046-MaxConsecutiveOnesIii
1048-LongestStringChain/
version/
java
1048-LongestStringChain/
version/
java
1049-LastStoneWeightII/
version/
java
1049-LastStoneWeightII/
version/
java
105-ConstructBinaryTreeFromPreorderAndInorderTraversal
105-ConstructBinaryTreeFromPreorderAndInorderTraversal
105-ConstructBinaryTreefromPreorderandInorderTraversal/
version/
java
105-ConstructBinaryTreefromPreorderandInorderTraversal/
version/
java
1054-ComplementOfBase10Integer
1054-ComplementOfBase10Integer
1056-CapacityToShipPackagesWithinDDays
1056-CapacityToShipPackagesWithinDDays
106-ConstructBinaryTreefromInorderandPostorderTraversal/
version/
java
106-ConstructBinaryTreefromInorderandPostorderTraversal/
version/
java
107-BinaryTreeLevelOrderTraversalIi
107-BinaryTreeLevelOrderTraversalIi
1079-SumOfRootToLeafBinaryNumbers
1079-SumOfRootToLeafBinaryNumbers
108-ConvertSortedArrayToBinarySearchTree
108-ConvertSortedArrayToBinarySearchTree
108-ConvertSortedArraytoBinarySearchTree/
version/
java
108-ConvertSortedArraytoBinarySearchTree/
version/
java
1081-SmallestSubsequenceofDistinctCharacters/
version/
java
1081-SmallestSubsequenceofDistinctCharacters/
version/
java
1086-DivisorGame
1086-DivisorGame
1087-LongestArithmeticSubsequence
1087-LongestArithmeticSubsequence
109-ConvertSortedListToBinarySearchTree
109-ConvertSortedListToBinarySearchTree
1094-MatrixCellsInDistanceOrder
1094-MatrixCellsInDistanceOrder
1096-BraceExpansionII/
version/
java
1096-BraceExpansionII/
version/
java
11-ContainerWithMostWater
11-ContainerWithMostWater
110-BalancedBinaryTree
110-BalancedBinaryTree
1105-UncrossedLines
1105-UncrossedLines
111-MinimumDepthOfBinaryTree
111-MinimumDepthOfBinaryTree
1111-MaximumNestingDepthofTwoValidParenthesesStrings/
version/
java
1111-MaximumNestingDepthofTwoValidParenthesesStrings/
version/
java
1116-MaximumLevelSumOfABinaryTree
1116-MaximumLevelSumOfABinaryTree
112-PathSum
112-PathSum
114-FlattenBinaryTreeToLinkedList
114-FlattenBinaryTreeToLinkedList
114-FlattenBinaryTreetoLinkedList/
version/
java
114-FlattenBinaryTreetoLinkedList/
version/
java
1143-LongestCommonSubsequence/
version/
java
1143-LongestCommonSubsequence/
version/
java
1146-GreatestCommonDivisorOfStrings
1146-GreatestCommonDivisorOfStrings
115-DistinctSubsequences
115-DistinctSubsequences
116-PopulatingNextRightPointersInEachNode
116-PopulatingNextRightPointersInEachNode
117-PopulatingNextRightPointersInEachNodeIi
117-PopulatingNextRightPointersInEachNodeIi
1170-ShortestCommonSupersequence
1170-ShortestCommonSupersequence
118-Pascal'sTriangle/
version/
java
118-Pascal'sTriangle/
version/
java
118-PascalsTriangle
118-PascalsTriangle
119-PascalsTriangleIi
119-PascalsTriangleIi
1190-ReverseSubstringsBetweenEachPairofParentheses/
version/
java
1190-ReverseSubstringsBetweenEachPairofParentheses/
version/
java
120-Triangle
120-Triangle
121-BestTimeToBuyAndSellStock
121-BestTimeToBuyAndSellStock
121-BestTimetoBuyandSellStock/
version/
java
121-BestTimetoBuyandSellStock/
version/
java
123-BestTimeToBuyAndSellStockIii
123-BestTimeToBuyAndSellStockIii
1236-NThTribonacciNumber
1236-NThTribonacciNumber
124-BinaryTreeMaximumPathSum
124-BinaryTreeMaximumPathSum
125-ValidPalindrome
125-ValidPalindrome
1250-LongestCommonSubsequence
1250-LongestCommonSubsequence
1254-NumberofClosedIslands/
version/
java
1254-NumberofClosedIslands/
version/
java
1260-Shift2DGrid/
version/
java
1260-Shift2DGrid/
version/
java
1267-CountServersthatCommunicate/
version/
java
1267-CountServersthatCommunicate/
version/
java
1268-SearchSuggestionsSystem/
version/
java
1268-SearchSuggestionsSystem/
version/
java
127-WordLadder
127-WordLadder
1285-BalanceABinarySearchTree
1285-BalanceABinarySearchTree
1288-RemoveCoveredIntervals/
version/
java
1288-RemoveCoveredIntervals/
version/
java
129-SumRootToLeafNumbers
129-SumRootToLeafNumbers
1291-SequentialDigits/
version/
java
1291-SequentialDigits/
version/
java
13-RomantoInteger/
version/
java
13-RomantoInteger/
version/
java
130-SurroundedRegions
130-SurroundedRegions
1306-MinimumAbsoluteDifference
1306-MinimumAbsoluteDifference
131-PalindromePartitioning
131-PalindromePartitioning
1319-UniqueNumberOfOccurrences
1319-UniqueNumberOfOccurrences
133-CloneGraph/
version/
java
133-CloneGraph/
version/
java
1330-LongestArithmeticSubsequenceOfGivenDifference
1330-LongestArithmeticSubsequenceOfGivenDifference
134-GasStation
134-GasStation
135-Candy
135-Candy
136-SingleNumber
136-SingleNumber
1372-LongestZigZagPathinaBinaryTree/
version/
java
1372-LongestZigZagPathinaBinaryTree/
version/
java
1373-MaximumSumBSTinBinaryTree/
version/
java
1373-MaximumSumBSTinBinaryTree/
version/
java
138-CopyListwithRandomPointer/
version/
java
138-CopyListwithRandomPointer/
version/
java
1385-FindtheDistanceValueBetweenTwoArrays/
version/
java
1385-FindtheDistanceValueBetweenTwoArrays/
version/
java
1386-CinemaSeatAllocation/
version/
java
1386-CinemaSeatAllocation/
version/
java
1386-Shift2dGrid
1386-Shift2dGrid
139-WordBreak
139-WordBreak
1391-CheckifThereisaValidPathinaGrid/
version/
java
1391-CheckifThereisaValidPathinaGrid/
version/
java
1392-FindTheDifferenceOfTwoArrays
1392-FindTheDifferenceOfTwoArrays
1395-MinimumTimeVisitingAllPoints
1395-MinimumTimeVisitingAllPoints
14-LongestCommonPrefix
14-LongestCommonPrefix
1400-FindWinnerOnATicTacToeGame
1400-FindWinnerOnATicTacToeGame
1401-CircleandRectangleOverlapping/
version/
java
1401-CircleandRectangleOverlapping/
version/
java
1406-StoneGameIII/
version/
java
1406-StoneGameIII/
version/
java
141-LinkedListCycle
141-LinkedListCycle
1411-ConvertBinaryNumberInALinkedListToInteger
1411-ConvertBinaryNumberInALinkedListToInteger
142-LinkedListCycleII/
version/
java
142-LinkedListCycleII/
version/
java
View all files
About
No description, website, or topics provided.
Activity
Stars
0
stars
Watchers
0
watching
Forks
0
forks
Report repository
Releases
Packages
Contributors
Languages
You can’t perform that action at this time.