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
Events
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
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 }}
JunZhuSecurity
leetcode-1
Repository navigation
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
More
items
Files
Expand file tree
master
Breadcrumbs
leetcode-1
/
src
/
Copy path
Directory actions
More options
More options
Directory actions
More options
More options
Latest commit
History
History
History
master
Breadcrumbs
leetcode-1
/
src
/
Copy path
Top
Folders and files
Name
Name
Last commit message
Last commit date
parent directory
..
3Sum
3Sum
3SumClosest
3SumClosest
4Sum
4Sum
LRUCache
LRUCache
addBinary
addBinary
addTwoNumbers
addTwoNumbers
anagrams
anagrams
balancedBinaryTree
balancedBinaryTree
bestTimeToBuyAndSellStock
bestTimeToBuyAndSellStock
binaryTreeInorderTraversal
binaryTreeInorderTraversal
binaryTreeLevelOrderTraversal
binaryTreeLevelOrderTraversal
binaryTreeMaximumPathSum
binaryTreeMaximumPathSum
binaryTreePostorderTraversal
binaryTreePostorderTraversal
binaryTreePreorderTraversal
binaryTreePreorderTraversal
binaryTreeZigzagLevelOrderTraversal
binaryTreeZigzagLevelOrderTraversal
candy
candy
climbStairs
climbStairs
cloneGraph
cloneGraph
combinationSum
combinationSum
combinations
combinations
constructBinaryTreeFromInorderAndPostorderTraversal
constructBinaryTreeFromInorderAndPostorderTraversal
constructBinaryTreeFromPreorderAndInorderTraversal
constructBinaryTreeFromPreorderAndInorderTraversal
containerWithMostWater
containerWithMostWater
convertSortedArrayToBinarySearchTree
convertSortedArrayToBinarySearchTree
convertSortedListToBinarySearchTree
convertSortedListToBinarySearchTree
copyListWithRandomPointer
copyListWithRandomPointer
countAndSay
countAndSay
decodeWays
decodeWays
distinctSubsequences
distinctSubsequences
divideTwoInt
divideTwoInt
editDistance
editDistance
evaluateReversePolishNotation
evaluateReversePolishNotation
findMinimumInRotatedSortedArray
findMinimumInRotatedSortedArray
firstMissingPositive
firstMissingPositive
flattenBinaryTreeToLinkedList
flattenBinaryTreeToLinkedList
gasStation
gasStation
generateParentheses
generateParentheses
grayCode
grayCode
insertInterval
insertInterval
insertionSortList
insertionSortList
integerToRoman
integerToRoman
interleavingString
interleavingString
jumpGame
jumpGame
largestRectangleInHistogram
largestRectangleInHistogram
lengthOfLastWord
lengthOfLastWord
letterCombinationsOfAPhoneNumber
letterCombinationsOfAPhoneNumber
linkedListCycle
linkedListCycle
longestCommonPrefix
longestCommonPrefix
longestConsecutiveSequence
longestConsecutiveSequence
longestPalindromicSubstring
longestPalindromicSubstring
longestSubstringWithoutRepeatingCharacters
longestSubstringWithoutRepeatingCharacters
longestValidParentheses
longestValidParentheses
maxPointsOnALine
maxPointsOnALine
maximalRectangle
maximalRectangle
maximumDepthOfBinaryTree
maximumDepthOfBinaryTree
maximumProductSubarray
maximumProductSubarray
maximumSubArray
maximumSubArray
medianOfTwoSortedArrays
medianOfTwoSortedArrays
mergeIntervals
mergeIntervals
mergeKSortedLists
mergeKSortedLists
mergeTwoSortedArray
mergeTwoSortedArray
mergeTwoSortedList
mergeTwoSortedList
minimumDepthOfBinaryTree
minimumDepthOfBinaryTree
minimumPathSum
minimumPathSum
minimumWindowSubstring
minimumWindowSubstring
multiplyStrings
multiplyStrings
nQueens
nQueens
nextPermutation
nextPermutation
palindromeNumber
palindromeNumber
palindromePartitioning
palindromePartitioning
partitionList
partitionList
pascalTriangle
pascalTriangle
pathSum
pathSum
permutationSequence
permutationSequence
permutations
permutations
plusOne
plusOne
populatingNextRightPointersInEachNode
populatingNextRightPointersInEachNode
pow
pow
recoverBinarySearchTree
recoverBinarySearchTree
regularExpressionMatching
regularExpressionMatching
removeDuplicatesFromSortedArray
removeDuplicatesFromSortedArray
removeDuplicatesFromSortedList
removeDuplicatesFromSortedList
removeElement
removeElement
removeNthNodeFromEndOfList
removeNthNodeFromEndOfList
reorderList
reorderList
restoreIPAddresses
restoreIPAddresses
reverseInteger
reverseInteger
reverseLinkedList
reverseLinkedList
reverseNodesInKGroup
reverseNodesInKGroup
reverseWordsInAString
reverseWordsInAString
romanToInteger
romanToInteger
rotateImage
rotateImage
rotateList
rotateList
sameTree
sameTree
scrambleString
scrambleString
search2DMatrix
search2DMatrix
searchForRange
searchForRange
searchInRotatedSortedArray
searchInRotatedSortedArray
searchInsertPosition
searchInsertPosition
setMatrixZeroes
setMatrixZeroes
View all files
You can’t perform that action at this time.