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
Small and medium teams
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 }}
AlgorithmsWorld
JavaAlgosSet2
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
master
Breadcrumbs
JavaAlgosSet2
/
src
/
main
/
java
/
leetcode
/
Copy path
Directory actions
More options
More options
Directory actions
More options
More options
Latest commit
History
History
History
master
Breadcrumbs
JavaAlgosSet2
/
src
/
main
/
java
/
leetcode
/
Copy path
Top
Folders and files
Name
Name
Last commit message
Last commit date
parent directory
..
competition
competition
easy
easy
hard
hard
medium
medium
AddTwoNumbers.java
AddTwoNumbers.java
BurstBalloon.java
BurstBalloon.java
CoinChange.java
CoinChange.java
CombinationSum.java
CombinationSum.java
CombinationSumII.java
CombinationSumII.java
ContainerWithMostWater.java
ContainerWithMostWater.java
DivideTwoIntegers.java
DivideTwoIntegers.java
EditDistance.java
EditDistance.java
FourSum.java
FourSum.java
GenerateParentheses.java
GenerateParentheses.java
GroupAnagrams.java
GroupAnagrams.java
ImplementStr.java
ImplementStr.java
JumpGame.java
JumpGame.java
LargestRectangleInHistogram.java
LargestRectangleInHistogram.java
LetterCombinationOfPhoneNumber.java
LetterCombinationOfPhoneNumber.java
ListNode.java
ListNode.java
LongestCommonPrefix.java
LongestCommonPrefix.java
LongestIncreasingSubsequence.java
LongestIncreasingSubsequence.java
LongestPalindromicSubstring.java
LongestPalindromicSubstring.java
LongestSubstringWithoutRepeatingCharacters.java
LongestSubstringWithoutRepeatingCharacters.java
MaximumSubarray.java
MaximumSubarray.java
MergeSortedLinkedList.java
MergeSortedLinkedList.java
MinCostPath.java
MinCostPath.java
NextPermutation.java
NextPermutation.java
PalindromeNumber.java
PalindromeNumber.java
PerfectSquares.java
PerfectSquares.java
PermutationSequence.java
PermutationSequence.java
Permutations.java
Permutations.java
PermutationsII.java
PermutationsII.java
Pow.java
Pow.java
RemoveElement.java
RemoveElement.java
RemoveNthNodeFromEndOfLinkedList.java
RemoveNthNodeFromEndOfLinkedList.java
ReverseInteger.java
ReverseInteger.java
RotateImage.java
RotateImage.java
RotateList.java
RotateList.java
SearchForARange.java
SearchForARange.java
SearchInsertPosition.java
SearchInsertPosition.java
SetMatrixZeroes.java
SetMatrixZeroes.java
SimplifyPath.java
SimplifyPath.java
SortedArrayMedian.java
SortedArrayMedian.java
SpiralMatrix.java
SpiralMatrix.java
SpiralMatrixII.java
SpiralMatrixII.java
Sqrt.java
Sqrt.java
StringToInteger.java
StringToInteger.java
SwapNodesInPairs.java
SwapNodesInPairs.java
ThreeSum.java
ThreeSum.java
ThreeSumClosest.java
ThreeSumClosest.java
TrappingRainWater.java
TrappingRainWater.java
TwoSum.java
TwoSum.java
UniquePaths.java
UniquePaths.java
UniquePathsII.java
UniquePathsII.java
ValidParenthesis.java
ValidParenthesis.java
ZigZagConversion.java
ZigZagConversion.java
View all files
You can’t perform that action at this time.