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 }}
YashDoesCode
Java-1000
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
main
Breadcrumbs
Java-1000
/
LeetCode
/
Copy path
Directory actions
More options
More options
Directory actions
More options
More options
Latest commit
History
History
History
main
Breadcrumbs
Java-1000
/
LeetCode
/
Copy path
Top
Folders and files
Name
Name
Last commit message
Last commit date
parent directory
..
AddStringsMath.java
AddStringsMath.java
AddTwoNumbersLL.java
AddTwoNumbersLL.java
AllAncestorsOfANodeInDAGGraph.java
AllAncestorsOfANodeInDAGGraph.java
AllNodesDistanceKTree.java
AllNodesDistanceKTree.java
AllPathsFromSourceToTargetGraph.java
AllPathsFromSourceToTargetGraph.java
ArmstrongNumberMath.java
ArmstrongNumberMath.java
ArrayPartition.java
ArrayPartition.java
AsFarFromLandAsPossibleGraph.java
AsFarFromLandAsPossibleGraph.java
AsteroidCollisionStack.java
AsteroidCollisionStack.java
BackspaceStringCompareStack.java
BackspaceStringCompareStack.java
BalancedBinaryTree.java
BalancedBinaryTree.java
BaseConversionMath.java
BaseConversionMath.java
BaseballGameStack.java
BaseballGameStack.java
BasicCalculatorStack.java
BasicCalculatorStack.java
BestTeamWithNoConflictsDP.java
BestTeamWithNoConflictsDP.java
BestTimeStock.java
BestTimeStock.java
BestTimeStockCooldownDP.java
BestTimeStockCooldownDP.java
BestTimeStockII.java
BestTimeStockII.java
BestTimeStockTransactionFeeDP.java
BestTimeStockTransactionFeeDP.java
BinaryGapBit.java
BinaryGapBit.java
BinaryTreeRightSideViewTree.java
BinaryTreeRightSideViewTree.java
BitwiseANDOfNumbersRange.java
BitwiseANDOfNumbersRange.java
BitwiseORsOfSubarrays.java
BitwiseORsOfSubarrays.java
BitwiseXOROfAllPairingsBit.java
BitwiseXOROfAllPairingsBit.java
BoxStacking3D.java
BoxStacking3D.java
BuildAnArrayWithStackOperations.java
BuildAnArrayWithStackOperations.java
BullsAndCows.java
BullsAndCows.java
BurstBalloonsDP.java
BurstBalloonsDP.java
BurstBalloonsDpMat.java
BurstBalloonsDpMat.java
Candy.java
Candy.java
CatalanNumbersMath.java
CatalanNumbersMath.java
CellsWithOddValuesMatrix.java
CellsWithOddValuesMatrix.java
CheapestFlightKStopsGraph.java
CheapestFlightKStopsGraph.java
CheapestFlightsWithinKStopsGraph.java
CheapestFlightsWithinKStopsGraph.java
CheckIfAllCharactersHaveEqualCount.java
CheckIfAllCharactersHaveEqualCount.java
CheckIfMatrixIsXMatrix.java
CheckIfMatrixIsXMatrix.java
CheckIfSentenceIsPangramMap.java
CheckIfSentenceIsPangramMap.java
CherryPickup3D.java
CherryPickup3D.java
ClimbingStairsDP.java
ClimbingStairsDP.java
CloneGraphStructure.java
CloneGraphStructure.java
CoinChangeDP.java
CoinChangeDP.java
CoinChangeIIDP.java
CoinChangeIIDP.java
CombinationSumIIIMath.java
CombinationSumIIIMath.java
CombinationSumIIMath.java
CombinationSumIIMath.java
CombinationSumIVDP.java
CombinationSumIVDP.java
CombinationSumMath.java
CombinationSumMath.java
CombinationsMath.java
CombinationsMath.java
CompareVersionNumbers.java
CompareVersionNumbers.java
ComplementOfBase10IntegerBit.java
ComplementOfBase10IntegerBit.java
ComplexNumberMultiplicationMath.java
ComplexNumberMultiplicationMath.java
ConcatenationOfConsecutiveBinaryNumbers.java
ConcatenationOfConsecutiveBinaryNumbers.java
ConstructTreePostInTree.java
ConstructTreePostInTree.java
ConstructTreePreIn.java
ConstructTreePreIn.java
ContainerWater.java
ContainerWater.java
ContainsDuplicate.java
ContainsDuplicate.java
ContainsDuplicateII.java
ContainsDuplicateII.java
ContinuousSubarraySumMap.java
ContinuousSubarraySumMap.java
ConvertBinaryNumberInLinkedListToInteger.java
ConvertBinaryNumberInLinkedListToInteger.java
ConvertSortedArrayToBSTTree.java
ConvertSortedArrayToBSTTree.java
CountAndSay.java
CountAndSay.java
CountCompleteTreeNodesTree.java
CountCompleteTreeNodesTree.java
CountNegativeNumbersSortedMatrix.java
CountNegativeNumbersSortedMatrix.java
CountPairsDiffK.java
CountPairsDiffK.java
CountPrimesMath.java
CountPrimesMath.java
CountSmallerNumbersSelf.java
CountSmallerNumbersSelf.java
CountSubIslandsGraph.java
CountSubIslandsGraph.java
CountUnhappyFriends.java
CountUnhappyFriends.java
CountUnreachablePairsOfNodesInAnUndirectedGraph.java
CountUnreachablePairsOfNodesInAnUndirectedGraph.java
CountVowelsPermutationDP.java
CountVowelsPermutationDP.java
CountingBits.java
CountingBits.java
CourseScheduleGraph.java
CourseScheduleGraph.java
CourseScheduleGraphTop.java
CourseScheduleGraphTop.java
CourseScheduleIIGraph.java
CourseScheduleIIGraph.java
CrawlerLogFolderStack.java
CrawlerLogFolderStack.java
CriticalConnectionsInANetworkGraph.java
CriticalConnectionsInANetworkGraph.java
CubeSum3D.java
CubeSum3D.java
CustomSortString.java
CustomSortString.java
DailyTemperaturesStack.java
DailyTemperaturesStack.java
DataStreamDisjointIntervalsSet.java
DataStreamDisjointIntervalsSet.java
DecodeString.java
DecodeString.java
DecodeWaysDP.java
DecodeWaysDP.java
DecodingXORedArrayBit.java
DecodingXORedArrayBit.java
DegreeOfArray.java
DegreeOfArray.java
DeleteMiddleNodeOfLinkedList.java
DeleteMiddleNodeOfLinkedList.java
DeleteNodeInBSTTree.java
DeleteNodeInBSTTree.java
DeleteNodeLinkedList.java
DeleteNodeLinkedList.java
DesignCircularQueue.java
DesignCircularQueue.java
DesignFrontMiddleBackQueue.java
DesignFrontMiddleBackQueue.java
DesignHashMapMap.java
DesignHashMapMap.java
DesignHashSetMap.java
DesignHashSetMap.java
DesignLinkedList.java
DesignLinkedList.java
DestinationCityMap.java
DestinationCityMap.java
DetonateTheMaximumBombsGraph.java
DetonateTheMaximumBombsGraph.java
DiagonalTraverse.java
DiagonalTraverse.java
DiameterBinaryTree.java
DiameterBinaryTree.java
DistinctSubsequences.java
DistinctSubsequences.java
DistributeCoinsInBinaryTree.java
DistributeCoinsInBinaryTree.java
Dota2SenateQueue.java
Dota2SenateQueue.java
DoubleANumberRepresentedAsLinkedList.java
DoubleANumberRepresentedAsLinkedList.java
Dungeon3DGame.java
Dungeon3DGame.java
View all files
You can’t perform that action at this time.