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
Accelerator
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 }}
IndeCy
/
Leetcode-Java
Public
forked from
pphdsny/Leetcode-Java
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Files
Expand file tree
master
Breadcrumbs
Leetcode-Java
/
src
/
pp
/
arithmetic
/
leetcode
/
Copy path
Directory actions
More options
More options
Directory actions
More options
More options
Latest commit
History
History
History
master
Breadcrumbs
Leetcode-Java
/
src
/
pp
/
arithmetic
/
leetcode
/
Copy path
Top
Folders and files
Name
Name
Last commit message
Last commit date
parent directory
..
_1004_longestOnes.java
_1004_longestOnes.java
_103_zigzagLevelOrder.java
_103_zigzagLevelOrder.java
_104_maxDepth.java
_104_maxDepth.java
_108_sortedArrayToBST.java
_108_sortedArrayToBST.java
_10_isMatch.java
_10_isMatch.java
_10_isMatch_2.java
_10_isMatch_2.java
_113_pathSum.java
_113_pathSum.java
_114_flatten.java
_114_flatten.java
_11_maxArea.java
_11_maxArea.java
_120_minimumTotal.java
_120_minimumTotal.java
_121_maxProfit.java
_121_maxProfit.java
_122_maxProfit.java
_122_maxProfit.java
_123_maxProfit.java
_123_maxProfit.java
_126_findLadders.java
_126_findLadders.java
_127_ladderLength.java
_127_ladderLength.java
_127_ladderLength_2.java
_127_ladderLength_2.java
_128_longestConsecutive.java
_128_longestConsecutive.java
_12_intToRoman.java
_12_intToRoman.java
_138_CopyRandomList.java
_138_CopyRandomList.java
_13_romanToInt.java
_13_romanToInt.java
_141_HasCycle.java
_141_HasCycle.java
_142_DetectCycle.java
_142_DetectCycle.java
_146_LRUCache.java
_146_LRUCache.java
_147_insertionSortList.java
_147_insertionSortList.java
_148_sortList.java
_148_sortList.java
_14_longestCommonPrefix.java
_14_longestCommonPrefix.java
_151_reverseWords.java
_151_reverseWords.java
_151_reverseWords_2.java
_151_reverseWords_2.java
_155_MinStack.java
_155_MinStack.java
_15_threeSum.java
_15_threeSum.java
_160_GetIntersectionNode.java
_160_GetIntersectionNode.java
_167_twoSum.java
_167_twoSum.java
_16_threeSumClosest.java
_16_threeSumClosest.java
_174_calculateMinimumHP.java
_174_calculateMinimumHP.java
_17_letterCombinations.java
_17_letterCombinations.java
_187_findRepeatedDnaSequences.java
_187_findRepeatedDnaSequences.java
_188_maxProfit.java
_188_maxProfit.java
_18_fourSum.java
_18_fourSum.java
_190_reverseBits.java
_190_reverseBits.java
_198_rob.java
_198_rob.java
_199_rightSideView.java
_199_rightSideView.java
_19_RemoveNthFromEnd.java
_19_RemoveNthFromEnd.java
_1_twoSum.java
_1_twoSum.java
_200_numIslands.java
_200_numIslands.java
_203_removeElements.java
_203_removeElements.java
_206_ReverseList.java
_206_ReverseList.java
_206_ReverseList_2.java
_206_ReverseList_2.java
_207_canFinish.java
_207_canFinish.java
_208_Trie.java
_208_Trie.java
_20_isValid.java
_20_isValid.java
_211_wordDictionary.java
_211_wordDictionary.java
_214_shortestPalindrome.java
_214_shortestPalindrome.java
_214_shortestPalindrome_2.java
_214_shortestPalindrome_2.java
_215_findKthLargest.java
_215_findKthLargest.java
_215_findKthLargest_2.java
_215_findKthLargest_2.java
_21_MergeTwoLists.java
_21_MergeTwoLists.java
_221_maximalSquare.java
_221_maximalSquare.java
_225_MyStack.java
_225_MyStack.java
_22_generateParenthesis.java
_22_generateParenthesis.java
_232_MyQuene.java
_232_MyQuene.java
_234_isPalindrome.java
_234_isPalindrome.java
_236_lowestCommonAncestor.java
_236_lowestCommonAncestor.java
_237_deleteNode.java
_237_deleteNode.java
_239_maxSlidingWindow.java
_239_maxSlidingWindow.java
_23_mergeKLists.java
_23_mergeKLists.java
_24_SwapPairs.java
_24_SwapPairs.java
_25_reverseKGroup.java
_25_reverseKGroup.java
_26_removeDuplicates.java
_26_removeDuplicates.java
_290_wordPattern.java
_290_wordPattern.java
_2_addTwoNumbers.java
_2_addTwoNumbers.java
_300_lengthOfLIS.java
_300_lengthOfLIS.java
_303_NumArray.java
_303_NumArray.java
_304_NumMatrix.java
_304_NumMatrix.java
_307_NumArray.java
_307_NumArray.java
_307_NumArray_2.java
_307_NumArray_2.java
_315_countSmaller.java
_315_countSmaller.java
_315_countSmaller_2.java
_315_countSmaller_2.java
_322_coinChange.java
_322_coinChange.java
_328_OddEvenList.java
_328_OddEvenList.java
_336_palindromePairs.java
_336_palindromePairs.java
_336_palindromePairs_2.java
_336_palindromePairs_2.java
_33_search.java
_33_search.java
_34_searchRange.java
_34_searchRange.java
_354_maxEnvelopes.java
_354_maxEnvelopes.java
_354_maxEnvelopes_2.java
_354_maxEnvelopes_2.java
_35_searchInsert.java
_35_searchInsert.java
_376_wiggleMaxLength.java
_376_wiggleMaxLength.java
_3_lengthOfLongestSubstring.java
_3_lengthOfLongestSubstring.java
_402_removeKdigits.java
_402_removeKdigits.java
_409_longestPalindrome.java
_409_longestPalindrome.java
_40_combinationSum2.java
_40_combinationSum2.java
_415_addStrings.java
_415_addStrings.java
_424_characterReplacement.java
_424_characterReplacement.java
_42_trap.java
_42_trap.java
_432_AllOne.java
_432_AllOne.java
_438_findAnagrams.java
_438_findAnagrams.java
_43_multiply.java
_43_multiply.java
_449_serialize_deserialize.java
_449_serialize_deserialize.java
_450_deleteNode.java
_450_deleteNode.java
_452_findMinArrowShots.java
_452_findMinArrowShots.java
View all files
You can’t perform that action at this time.