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 }}
andy2git
/
coding
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
0
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Files
Expand file tree
master
Breadcrumbs
coding
/
leetcode
/
java
/
Copy path
Directory actions
More options
More options
Directory actions
More options
More options
Latest commit
History
History
History
master
Breadcrumbs
coding
/
leetcode
/
java
/
Copy path
Top
Folders and files
Name
Name
Last commit message
Last commit date
parent directory
..
01Matrix.java
01Matrix.java
3Sum.java
3Sum.java
3SumClosest.java
3SumClosest.java
4Sum.java
4Sum.java
AddTwoNumbers.java
AddTwoNumbers.java
BalancedBinaryTree.java
BalancedBinaryTree.java
BestTimetoBuyandSellStock.java
BestTimetoBuyandSellStock.java
BestTimetoBuyandSellStock2.java
BestTimetoBuyandSellStock2.java
BinarySearchTreeIterator.java
BinarySearchTreeIterator.java
BinaryTreeInorderTraversal.java
BinaryTreeInorderTraversal.java
BinaryTreeLevelOrderTraversal.java
BinaryTreeLevelOrderTraversal.java
BinaryTreeLevelOrderTraversal2.java
BinaryTreeLevelOrderTraversal2.java
BinaryTreePaths.java
BinaryTreePaths.java
BinaryTreePreorderTraversal.java
BinaryTreePreorderTraversal.java
BinaryTreeRightSideView.java
BinaryTreeRightSideView.java
BinaryTreeZigzagLevelOrderTraversal.java
BinaryTreeZigzagLevelOrderTraversal.java
ClimbingStairs.java
ClimbingStairs.java
CloneGraph.java
CloneGraph.java
CoinChange.java
CoinChange.java
CombinationSum.java
CombinationSum.java
CombinationSum_2.java
CombinationSum_2.java
Combinations.java
Combinations.java
ConstructBinaryTreefromInorderandPostorderTraversal.java
ConstructBinaryTreefromInorderandPostorderTraversal.java
ConstructBinaryTreefromPreorderandInorderTraversal.java
ConstructBinaryTreefromPreorderandInorderTraversal.java
ConvertBSTtoGreaterTree.java
ConvertBSTtoGreaterTree.java
ConvertSortedArraytoBinarySearchTree.java
ConvertSortedArraytoBinarySearchTree.java
ConvertSortedListtoBinarySearchTree.java
ConvertSortedListtoBinarySearchTree.java
CountandSay.java
CountandSay.java
CourseSchedule.java
CourseSchedule.java
DecodeString.java
DecodeString.java
DecodeWays.java
DecodeWays.java
DesignCircularQueue.java
DesignCircularQueue.java
DesignHashMap.java
DesignHashMap.java
DesignHashSet.java
DesignHashSet.java
EditDistance.java
EditDistance.java
EvaluateReversePolishNotation.java
EvaluateReversePolishNotation.java
FactorialTrailingZeroes.java
FactorialTrailingZeroes.java
FibonacciNumber.java
FibonacciNumber.java
FindCommonCharacters.java
FindCommonCharacters.java
FindFirstandLastPositionofElementinSortedArray.java
FindFirstandLastPositionofElementinSortedArray.java
FindMinimuminRotatedSortedArray.java
FindMinimuminRotatedSortedArray.java
FindMinimuminRotatedSortedArray2.java
FindMinimuminRotatedSortedArray2.java
FindPeakElement.java
FindPeakElement.java
FindPivotIndex.java
FindPivotIndex.java
FindtheDifference.java
FindtheDifference.java
FindtheDuplicateNumber.java
FindtheDuplicateNumber.java
FirstBadVersion.java
FirstBadVersion.java
FlattenNestedListIterator.java
FlattenNestedListIterator.java
FlippinganImage.java
FlippinganImage.java
GasStation.java
GasStation.java
GenerateParentheses.java
GenerateParentheses.java
HouseRobber.java
HouseRobber.java
HouseRobber2.java
HouseRobber2.java
ImplementQueueusingStacks.java
ImplementQueueusingStacks.java
ImplementStackusingQueues.java
ImplementStackusingQueues.java
ImplementTrie.java
ImplementTrie.java
IncreasingOrderSearchTree.java
IncreasingOrderSearchTree.java
IncreasingTripletSubsequence.java
IncreasingTripletSubsequence.java
InsertInterval.java
InsertInterval.java
IntersectionofTwoLinkedLists.java
IntersectionofTwoLinkedLists.java
InvertBinaryTree.java
InvertBinaryTree.java
IsSubsequence.java
IsSubsequence.java
IslandPerimeter.java
IslandPerimeter.java
JewelsandStones.java
JewelsandStones.java
JumpGame.java
JumpGame.java
KthLargestElementinanArray.java
KthLargestElementinanArray.java
KthSmallestElementinaBST.java
KthSmallestElementinaBST.java
LRUCache.java
LRUCache.java
LetterCombinationsofaPhoneNumber.java
LetterCombinationsofaPhoneNumber.java
LinkedListCycle.java
LinkedListCycle.java
LongestCommonSubsequence.java
LongestCommonSubsequence.java
LongestContinuousIncreasingSubsequence.java
LongestContinuousIncreasingSubsequence.java
LongestIncreasingSubsequence.java
LongestIncreasingSubsequence.java
LongestPalindrome.java
LongestPalindrome.java
LongestPalindromicSubstring.java
LongestPalindromicSubstring.java
LongestSubstringWithoutRepeatingCharacters.java
LongestSubstringWithoutRepeatingCharacters.java
LowestCommonAncestorofaBinarySearchTree.java
LowestCommonAncestorofaBinarySearchTree.java
LowestCommonAncestorofaBinaryTree.java
LowestCommonAncestorofaBinaryTree.java
MajorityElement.java
MajorityElement.java
MaxAreaofIsland.java
MaxAreaofIsland.java
MaximumAscendingSubarraySum.java
MaximumAscendingSubarraySum.java
MaximumDepthofBinaryTree.java
MaximumDepthofBinaryTree.java
MaximumSubarray.java
MaximumSubarray.java
MergeIntervals.java
MergeIntervals.java
MergeSortedArray.java
MergeSortedArray.java
MergeTwoBinaryTrees.java
MergeTwoBinaryTrees.java
MergekSortedLists.java
MergekSortedLists.java
MiddleoftheLinkedList.java
MiddleoftheLinkedList.java
MinCostClimbingStairs.java
MinCostClimbingStairs.java
MinStack.java
MinStack.java
MinimumPathSum.java
MinimumPathSum.java
MissingNumber.java
MissingNumber.java
MoveZeroes.java
MoveZeroes.java
NextPermutation.java
NextPermutation.java
NumberofIslands.java
NumberofIslands.java
NumberofLongestIncreasingSubsequence.java
NumberofLongestIncreasingSubsequence.java
NumberofRecentCalls.java
NumberofRecentCalls.java
OddEvenLinkedList.java
OddEvenLinkedList.java
PalindromeLinkedList.java
PalindromeLinkedList.java
PalindromeNumber.java
PalindromeNumber.java
View all files
You can’t perform that action at this time.