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 }}
coderjoin
/
leetcode
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Files
Expand file tree
master
Breadcrumbs
leetcode
/
src
/
main
/
java
/
leetcode2020
/
Copy path
Directory actions
More options
More options
Directory actions
More options
More options
Latest commit
History
History
History
master
Breadcrumbs
leetcode
/
src
/
main
/
java
/
leetcode2020
/
Copy path
Top
Folders and files
Name
Name
Last commit message
Last commit date
parent directory
..
AddDigits_258.java
AddDigits_258.java
ArrangeCoins_441.java
ArrangeCoins_441.java
ArrayPairSum_561.java
ArrayPairSum_561.java
AsteroidCollision_735.java
AsteroidCollision_735.java
BusyStudent_1450.java
BusyStudent_1450.java
Calculate_224.java
Calculate_224.java
Calculate_227.java
Calculate_227.java
CanConstruct_383.java
CanConstruct_383.java
CanFinish_207.java
CanFinish_207.java
CanIWin_464.java
CanIWin_464.java
CanTransform_777.java
CanTransform_777.java
CheckInclusion_567.java
CheckInclusion_567.java
CheckPossibility_665.java
CheckPossibility_665.java
CheckRecord_551.java
CheckRecord_551.java
CheckSubarraySum_523.java
CheckSubarraySum_523.java
ClosedIsland_1254.java
ClosedIsland_1254.java
CombinationSum3_216.java
CombinationSum3_216.java
Combine_77.java
Combine_77.java
CommonChars_1002.java
CommonChars_1002.java
ContainsNearbyAlmostDuplicate_220.java
ContainsNearbyAlmostDuplicate_220.java
ContainsNearbyDuplicate_219.java
ContainsNearbyDuplicate_219.java
ConvertToTitle_168.java
ConvertToTitle_168.java
CountCharacters_1160.java
CountCharacters_1160.java
CountNegatives_1351.java
CountNegatives_1351.java
CountPrimes_204.java
CountPrimes_204.java
CountSegments_434.java
CountSegments_434.java
CreateTargetArray_1389.java
CreateTargetArray_1389.java
DailyTemperatures_739.java
DailyTemperatures_739.java
DayOfTheWeek_1185.java
DayOfTheWeek_1185.java
DecodeString_394.java
DecodeString_394.java
DeleteAndEarn_740.java
DeleteAndEarn_740.java
DeleteDuplicates_82.java
DeleteDuplicates_82.java
DeleteDuplicates_83.java
DeleteDuplicates_83.java
DestCity_1436.java
DestCity_1436.java
DetectCapitalUse_520.java
DetectCapitalUse_520.java
Divide_29.java
Divide_29.java
ExclusiveTime_636.java
ExclusiveTime_636.java
FindAnagrams_438.java
FindAnagrams_438.java
FindContentChildren_455.java
FindContentChildren_455.java
FindDisappearedNumbers_448.java
FindDisappearedNumbers_448.java
FindDuplicate_287.java
FindDuplicate_287.java
FindErrorNums_645.java
FindErrorNums_645.java
FindLengthOfLCIS_674.java
FindLengthOfLCIS_674.java
FindLength_718.java
FindLength_718.java
FindLucky_1394.java
FindLucky_1394.java
FindMedianSortedArrays_4.java
FindMedianSortedArrays_4.java
FindNthDigit_400.java
FindNthDigit_400.java
FindNumbers_1295.java
FindNumbers_1295.java
FindOcurrences_1078.java
FindOcurrences_1078.java
FindTargetSumWays_494.java
FindTargetSumWays_494.java
FindTheDifference_389.java
FindTheDifference_389.java
FindUnsortedSubarray_581.java
FindUnsortedSubarray_581.java
FizzBuzz_412.java
FizzBuzz_412.java
FourSum_18.java
FourSum_18.java
GameOfLife_289.java
GameOfLife_289.java
GenerateMatrix_59.java
GenerateMatrix_59.java
GenerateParenthesis_22.java
GenerateParenthesis_22.java
Generate_118.java
Generate_118.java
GetHappyString_1415.java
GetHappyString_1415.java
GetMaximumGold_1219.java
GetMaximumGold_1219.java
GetMoneyAmount_375.java
GetMoneyAmount_375.java
GetRow_119.java
GetRow_119.java
GrayCode_89.java
GrayCode_89.java
HammingDistance_461.java
HammingDistance_461.java
HasGroupsSizeX_914.java
HasGroupsSizeX_914.java
HasPathSum_112.java
HasPathSum_112.java
HasValidPath_1394.java
HasValidPath_1394.java
HeightChecker_1051.java
HeightChecker_1051.java
IntegerReplacement_397.java
IntegerReplacement_397.java
Intersection_349.java
Intersection_349.java
IntervalIntersection_986.java
IntervalIntersection_986.java
IsHappy_202.java
IsHappy_202.java
IsIdealPermutation_775.java
IsIdealPermutation_775.java
IsIsomorphic_205.java
IsIsomorphic_205.java
IsPerfectSquare_367.java
IsPerfectSquare_367.java
IsPowerOfFour_342.java
IsPowerOfFour_342.java
IsPowerOfThree_326.java
IsPowerOfThree_326.java
IsPowerOfTwo_231.java
IsPowerOfTwo_231.java
IsToeplitzMatrix_766.java
IsToeplitzMatrix_766.java
IsUgly_263.java
IsUgly_263.java
IsUnique_0101.java
IsUnique_0101.java
JudgeSquareSum_633.java
JudgeSquareSum_633.java
KidsWithCandies_1430.java
KidsWithCandies_1430.java
KthGrammar_779.java
KthGrammar_779.java
LRUCache_146.java
LRUCache_146.java
LadderLength_127.java
LadderLength_127.java
Largest1BorderedSquare_1139.java
Largest1BorderedSquare_1139.java
LargestRectangleArea_84.java
LargestRectangleArea_84.java
LastStoneWeightII_1049.java
LastStoneWeightII_1049.java
LastStoneWeight_1046.java
LastStoneWeight_1046.java
LetterCasePermutation_784.java
LetterCasePermutation_784.java
LevelOrder_32.java
LevelOrder_32.java
ListNode.java
ListNode.java
LongestSubstring_395.java
LongestSubstring_395.java
MajorityElement_169.java
MajorityElement_169.java
MaxAreaOfIsland_695.java
MaxAreaOfIsland_695.java
MaxLevelSum_1161.java
MaxLevelSum_1161.java
MaxNumberOfBalloons_1189.java
MaxNumberOfBalloons_1189.java
MaxProfit_121.java
MaxProfit_121.java
MaxProfit_123.java
MaxProfit_123.java
View all files
You can’t perform that action at this time.