Skip to content
Navigation Menu
Toggle navigation
Sign in
Product
GitHub Copilot
Write better code with AI
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
All features
Documentation
GitHub Skills
Blog
Solutions
By company size
Enterprises
Small and medium teams
Startups
Nonprofits
By use case
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
Reseting 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 }}
metanet
/
java-algorithms-data-structures
Public
Notifications
You must be signed in to change notification settings
Fork
13
Star
35
Code
Issues
0
Pull requests
0
Actions
Projects
0
Security
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security
Insights
Files
master
Breadcrumbs
java-algorithms-data-structures
/
src
/
problems
/
leetcode
/
Copy path
Directory actions
More options
Directory actions
More options
Latest commit
History
History
master
Breadcrumbs
java-algorithms-data-structures
/
src
/
problems
/
leetcode
/
Top
Folders and files
Name
Name
Last commit message
Last commit date
parent directory
..
AddBinary.java
AddBinary.java
AddStrings.java
AddStrings.java
AddTwoNumbers.java
AddTwoNumbers.java
AlienDictionary.java
AlienDictionary.java
AllNodesDistanceKInBinaryTree.java
AllNodesDistanceKInBinaryTree.java
ArithmeticEval.java
ArithmeticEval.java
BSTIterator.java
BSTIterator.java
BalancedBinaryTree.java
BalancedBinaryTree.java
BasicCalculator.java
BasicCalculator.java
BasicCalculatorII.java
BasicCalculatorII.java
BasicCalculatorIII.java
BasicCalculatorIII.java
BestTimeToBuyAndSellStock.java
BestTimeToBuyAndSellStock.java
BestTimeToBuyAndSellStockII.java
BestTimeToBuyAndSellStockII.java
BestTimeToBuyAndSellStockWithCooldown.java
BestTimeToBuyAndSellStockWithCooldown.java
BinarySearch.java
BinarySearch.java
BinaryTreeInorderTraversal.java
BinaryTreeInorderTraversal.java
BinaryTreeLevelOrderTraversal.java
BinaryTreeLevelOrderTraversal.java
BinaryTreeMaxPathSum.java
BinaryTreeMaxPathSum.java
BinaryTreePaths.java
BinaryTreePaths.java
BinaryTreePostOrderTraversalWithStack.java
BinaryTreePostOrderTraversalWithStack.java
BinaryTreeRightSideView.java
BinaryTreeRightSideView.java
BinaryTreeZigzagLevelOrderTraversal.java
BinaryTreeZigzagLevelOrderTraversal.java
BitShifts.java
BitShifts.java
BurstBalloons.java
BurstBalloons.java
CampusBikes.java
CampusBikes.java
CheckCompletenessOfBinaryTree.java
CheckCompletenessOfBinaryTree.java
ClimbingStairs.java
ClimbingStairs.java
CloneGraph.java
CloneGraph.java
CoinChange.java
CoinChange.java
CombinationSum.java
CombinationSum.java
CombinationSumII.java
CombinationSumII.java
CompareVersionNumbers.java
CompareVersionNumbers.java
ConcatenatedWords.java
ConcatenatedWords.java
ConstructBinaryTreeFromInorderAndPostorderTraversals.java
ConstructBinaryTreeFromInorderAndPostorderTraversals.java
ConstructBinaryTreeFromPreorderAndInorderTraversals.java
ConstructBinaryTreeFromPreorderAndInorderTraversals.java
ContainerWithMostWater.java
ContainerWithMostWater.java
ContainsDuplicate.java
ContainsDuplicate.java
ContinuousSubarraySum.java
ContinuousSubarraySum.java
ConvertBinarySearchTreeToSortedDoublyLinkedList.java
ConvertBinarySearchTreeToSortedDoublyLinkedList.java
ConvertSortedArrayToBinarySearchTree.java
ConvertSortedArrayToBinarySearchTree.java
CopyListWithRandomPointer.java
CopyListWithRandomPointer.java
CountAndSay.java
CountAndSay.java
CountCompleteBinaryTreeNodes.java
CountCompleteBinaryTreeNodes.java
CountOfSmallerNumbersAfterSelf.java
CountOfSmallerNumbersAfterSelf.java
CountPrimes.java
CountPrimes.java
CountingBits.java
CountingBits.java
CourseSchedule.java
CourseSchedule.java
CourseScheduleII.java
CourseScheduleII.java
CourseScheduleIII.java
CourseScheduleIII.java
CriticalConnectionsInANetwork.java
CriticalConnectionsInANetwork.java
CutOffTreesForGolfEvent.java
CutOffTreesForGolfEvent.java
DailyTemperatures.java
DailyTemperatures.java
DecodeString.java
DecodeString.java
DecodeWaysDP.java
DecodeWaysDP.java
DecodeWaysMemo.java
DecodeWaysMemo.java
DeleteNodeInLinkedList.java
DeleteNodeInLinkedList.java
DesignSearchAutoCompleteSystem.java
DesignSearchAutoCompleteSystem.java
DesignTicTacToe.java
DesignTicTacToe.java
DiameterOfBinaryTree.java
DiameterOfBinaryTree.java
DivideTwoIntegers.java
DivideTwoIntegers.java
EditDistance.java
EditDistance.java
EncodeAndDecodeStrings.java
EncodeAndDecodeStrings.java
EvaluateDivision.java
EvaluateDivision.java
EvaluateReversePolishNotation.java
EvaluateReversePolishNotation.java
FindAllAnagramsInString.java
FindAllAnagramsInString.java
FindCircles.java
FindCircles.java
FindDuplicateNumber.java
FindDuplicateNumber.java
FindDuplicateSubtrees.java
FindDuplicateSubtrees.java
FindFirstAndLastPositionOfElementInSortedArray.java
FindFirstAndLastPositionOfElementInSortedArray.java
FindMedianFromDataStream.java
FindMedianFromDataStream.java
FindMinimumInRotatedSortedArray.java
FindMinimumInRotatedSortedArray.java
FindPeakElement.java
FindPeakElement.java
FindTheCelebrity.java
FindTheCelebrity.java
FindTheIndexOfTheFirstOccurrenceInAString.java
FindTheIndexOfTheFirstOccurrenceInAString.java
FindTheWinnerOfTheCircularGame.java
FindTheWinnerOfTheCircularGame.java
FirstBadVersion.java
FirstBadVersion.java
FirstMissingPositive.java
FirstMissingPositive.java
FirstUniqueCharacterInString.java
FirstUniqueCharacterInString.java
FizzBuzz.java
FizzBuzz.java
FlattenBinaryTreeToLinkedList.java
FlattenBinaryTreeToLinkedList.java
FlattenNestedListIterator.java
FlattenNestedListIterator.java
FloodFill.java
FloodFill.java
FourSum.java
FourSum.java
GameOfLife.java
GameOfLife.java
GasStation.java
GasStation.java
GenerateParentheses.java
GenerateParentheses.java
GroupAnagrams.java
GroupAnagrams.java
HIndex.java
HIndex.java
HammingDistance.java
HammingDistance.java
HappyNumber.java
HappyNumber.java
HeapSort.java
HeapSort.java
HouseRobber.java
HouseRobber.java
ImplementQueueUsingStacks.java
ImplementQueueUsingStacks.java
ImplementStackUsingQueues.java
ImplementStackUsingQueues.java
ImplementStrStr.java
ImplementStrStr.java
ImplementTrie.java
ImplementTrie.java
IncreasingTripletSubsequence.java
IncreasingTripletSubsequence.java
InorderSuccessorInBinarySearchTree.java
InorderSuccessorInBinarySearchTree.java
InsertDeleteGetRandomO1.java
InsertDeleteGetRandomO1.java
InsertInterval.java
InsertInterval.java
View all files
You can’t perform that action at this time.