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 }}
BKKong
Leetcode-Java
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
master
Breadcrumbs
Leetcode-Java
/
leetcode
/
solution
/
src
/
Copy path
Directory actions
More options
More options
Directory actions
More options
More options
Latest commit
History
History
History
master
Breadcrumbs
Leetcode-Java
/
leetcode
/
solution
/
src
/
Copy path
Top
Folders and files
Name
Name
Last commit message
Last commit date
parent directory
..
system
system
AddBinary.java
AddBinary.java
AddTwoNumber.java
AddTwoNumber.java
AddTwoNumbersII.java
AddTwoNumbersII.java
AlienDictionary.java
AlienDictionary.java
AndroidUnlockPatterns.java
AndroidUnlockPatterns.java
AverageOfLevelsInBinaryTree.java
AverageOfLevelsInBinaryTree.java
BSTIterator.java
BSTIterator.java
BackspaceStringCompare.java
BackspaceStringCompare.java
BalancedBinaryTree.java
BalancedBinaryTree.java
BasicCalculator.java
BasicCalculator.java
BeautifulArrangement.java
BeautifulArrangement.java
BestTimeBuySellStock.java
BestTimeBuySellStock.java
BestTimeBuySellStockII.java
BestTimeBuySellStockII.java
BestTimeBuySellStockIII.java
BestTimeBuySellStockIII.java
BestTimeBuySellStockIV.java
BestTimeBuySellStockIV.java
BestTimeBuySellStockWithCoolDown.java
BestTimeBuySellStockWithCoolDown.java
BinaryTreeInorderTraversal.java
BinaryTreeInorderTraversal.java
BinaryTreeLevelOrderTraversal.java
BinaryTreeLevelOrderTraversal.java
BinaryTreeLevelOrderTraversalII.java
BinaryTreeLevelOrderTraversalII.java
BinaryTreeLongestConsecutiveSequence.java
BinaryTreeLongestConsecutiveSequence.java
BinaryTreeMaximumPathSum.java
BinaryTreeMaximumPathSum.java
BinaryTreePaths.java
BinaryTreePaths.java
BinaryTreePostorderTraversal.java
BinaryTreePostorderTraversal.java
BinaryTreePreorderTraversal.java
BinaryTreePreorderTraversal.java
BinaryTreePruning.java
BinaryTreePruning.java
BinaryTreeRightSideView.java
BinaryTreeRightSideView.java
BinaryTreeTilt.java
BinaryTreeTilt.java
BinaryTreeUpsideDown.java
BinaryTreeUpsideDown.java
BinaryTreeVerticalOrderTraversal.java
BinaryTreeVerticalOrderTraversal.java
BinaryTreeZigzagLevelOrderTraversal.java
BinaryTreeZigzagLevelOrderTraversal.java
BinaryWatch.java
BinaryWatch.java
BombEnemy.java
BombEnemy.java
BulbSwitcher.java
BulbSwitcher.java
BullsAndCows.java
BullsAndCows.java
BurstBalloons.java
BurstBalloons.java
CanArrangeWords.java
CanArrangeWords.java
Candy.java
Candy.java
CloneGraph.java
CloneGraph.java
ClosestBinarySearchTreeValue.java
ClosestBinarySearchTreeValue.java
ClosestBinarySearchTreeValueII.java
ClosestBinarySearchTreeValueII.java
Codec.java
Codec.java
CoinChange.java
CoinChange.java
CombinationSum.java
CombinationSum.java
CombinationSumII.java
CombinationSumII.java
CombinationSumIII.java
CombinationSumIII.java
CombinationSumIV.java
CombinationSumIV.java
Combinations.java
Combinations.java
ConstructBinaryTreeFromInorderAndPostorderTraversal.java
ConstructBinaryTreeFromInorderAndPostorderTraversal.java
ConstructBinaryTreeFromPreorderAndPostorderTraversal.java
ConstructBinaryTreeFromPreorderAndPostorderTraversal.java
ConstructBinaryTreeFromPreorderInorderTraversal.java
ConstructBinaryTreeFromPreorderInorderTraversal.java
ConstructStringFromBinaryTree.java
ConstructStringFromBinaryTree.java
ContainerWithMostWater.java
ContainerWithMostWater.java
ContainsDuplicate.java
ContainsDuplicate.java
ContainsDuplicateII.java
ContainsDuplicateII.java
ContainsDuplicateIII.java
ContainsDuplicateIII.java
ConvertBSTToGreaterTree.java
ConvertBSTToGreaterTree.java
ConvertSortedArrayToBinarySearchTree.java
ConvertSortedArrayToBinarySearchTree.java
ConvertSortedListToBinarySearchTree.java
ConvertSortedListToBinarySearchTree.java
CopyListWithRandomPointer.java
CopyListWithRandomPointer.java
CountAndSay.java
CountAndSay.java
CountCompleteTreeNodes.java
CountCompleteTreeNodes.java
CountNumberWithUniqueDigits.java
CountNumberWithUniqueDigits.java
CountOfSmallerNumbersAfterSelf.java
CountOfSmallerNumbersAfterSelf.java
CountPrimes.java
CountPrimes.java
CountReversePairs.java
CountReversePairs.java
CountUnivalueSubtrees.java
CountUnivalueSubtrees.java
CourseSchedule.java
CourseSchedule.java
CourseScheduleII.java
CourseScheduleII.java
DecodeString.java
DecodeString.java
DecodeWays.java
DecodeWays.java
DeleteNodeInALinkedList.java
DeleteNodeInALinkedList.java
DeleteNodeInBST.java
DeleteNodeInBST.java
DiameterOfBinaryTree.java
DiameterOfBinaryTree.java
DifferenceWaysToAddParentheses.java
DifferenceWaysToAddParentheses.java
DivideTwoIntegers.java
DivideTwoIntegers.java
EditDistance.java
EditDistance.java
EncodeAndDecodeStrings.java
EncodeAndDecodeStrings.java
EncodeAndDecodeTinyURL.java
EncodeAndDecodeTinyURL.java
EvaluateDivision.java
EvaluateDivision.java
EvaluateReversePolishNotation.java
EvaluateReversePolishNotation.java
ExcelSheetColumnNumber.java
ExcelSheetColumnNumber.java
ExcelSheetColumnTitle.java
ExcelSheetColumnTitle.java
ExpressionAddOperators.java
ExpressionAddOperators.java
FactorCombinations.java
FactorCombinations.java
FactorialTrailingZeroes.java
FactorialTrailingZeroes.java
FindAllAnagramsInString.java
FindAllAnagramsInString.java
FindAllDuplicatesInAnArray.java
FindAllDuplicatesInAnArray.java
FindAllNumbersDisappearedInAnArray.java
FindAllNumbersDisappearedInAnArray.java
FindBottomLeftTreeValue.java
FindBottomLeftTreeValue.java
FindCelebrity.java
FindCelebrity.java
FindDuplicateSubtrees.java
FindDuplicateSubtrees.java
FindKPairsWithSmallestSums.java
FindKPairsWithSmallestSums.java
FindLargestValueInEachTreeRow.java
FindLargestValueInEachTreeRow.java
FindLeavesOfBinaryTree.java
FindLeavesOfBinaryTree.java
FindMedianFromDataStream.java
FindMedianFromDataStream.java
FindMinimumInRotatedSortedArray.java
FindMinimumInRotatedSortedArray.java
FindMinimumInRotatedSortedArrayII.java
FindMinimumInRotatedSortedArrayII.java
FindModeInBinarySearchTree.java
FindModeInBinarySearchTree.java
FindPeakElement.java
FindPeakElement.java
View all files
You can’t perform that action at this time.