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
Type
/
to 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 }}
hatricks
/
algorithm
Public
forked from
hollischuang/algorithm
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
algorithm
/
leetcode
/
Copy path
Directory actions
More options
More options
Directory actions
More options
More options
Latest commit
History
History
History
master
Breadcrumbs
algorithm
/
leetcode
/
Copy path
Top
Folders and files
Name
Name
Last commit message
Last commit date
parent directory
..
001-twoSum
001-twoSum
002-addTwoNumber
002-addTwoNumber
003-longestSubstringWithoutRepeatingCharacters
003-longestSubstringWithoutRepeatingCharacters
005-LongestPalindromicSubstring
005-LongestPalindromicSubstring
015-threeSum
015-threeSum
020-validParentheses
020-validParentheses
024-swapNodesInPairs
024-swapNodesInPairs
025-reverseNodesInKGroup
025-reverseNodesInKGroup
036-ValidSudoku
036-ValidSudoku
037-SudokuSolver
037-SudokuSolver
050-powxN
050-powxN
051-NQueens
051-NQueens
052-N-QueensII
052-N-QueensII
053-maximumSubarray
053-maximumSubarray
062-UniquePaths
062-UniquePaths
063-UniquePathsII
063-UniquePathsII
064-minimumPathSum
064-minimumPathSum
069-SqrtX
069-SqrtX
070-ClimbingStairs
070-ClimbingStairs
072-EditDistance
072-EditDistance
085-MaximalRectangle
085-MaximalRectangle
087-ScrambleString
087-ScrambleString
091-DecodeWays
091-DecodeWays
095-UniqueBinarySearchTreesII
095-UniqueBinarySearchTreesII
096-uniqueBinarySearchTrees
096-uniqueBinarySearchTrees
097-InterleavingString
097-InterleavingString
098-validateBinarySearchTree
098-validateBinarySearchTree
102-BinaryTreeLevelOrderTraversal
102-BinaryTreeLevelOrderTraversal
104-MaximumDepthOfBinaryTree
104-MaximumDepthOfBinaryTree
115-DistinctSubsequences
115-DistinctSubsequences
120-Triangle
120-Triangle
121-bestTimeToBuyAndSellStock
121-bestTimeToBuyAndSellStock
122-bestTimeToBuyAndSellStockII
122-bestTimeToBuyAndSellStockII
123-BestTimeToBuyAndSellStockIII
123-BestTimeToBuyAndSellStockIII
131-PalindromePartitioning
131-PalindromePartitioning
132-PalindromePartitioningII
132-PalindromePartitioningII
139-WordBreak
139-WordBreak
140-WordBreakII
140-WordBreakII
141-linkedListCycle
141-linkedListCycle
142-linkedListCycleII
142-linkedListCycleII
146-lruCache
146-lruCache
152-MaximumProductSubarray
152-MaximumProductSubarray
169-majorityElement
169-majorityElement
174-DungeonGame
174-DungeonGame
188-bestTimeToBuyAndSellStockIV
188-bestTimeToBuyAndSellStockIV
191-NumberOf1Bits
191-NumberOf1Bits
198-houseRobber
198-houseRobber
200-numberOfIslands
200-numberOfIslands
206-reverseLinkedList
206-reverseLinkedList
208-implementTriePrefixTree
208-implementTriePrefixTree
212-wordSearchII
212-wordSearchII
213-HouseRobberII
213-HouseRobberII
215-KthLargestElementInAnArray
215-KthLargestElementInAnArray
221-MaximalSquare
221-MaximalSquare
225-implementStackUsingQueues
225-implementStackUsingQueues
231-PowerOfTwo
231-PowerOfTwo
232-implementQueueUsingStacks
232-implementQueueUsingStacks
236-lowestCommonAncestorOfABinaryTree
236-lowestCommonAncestorOfABinaryTree
239-slidingWindowMaximum
239-slidingWindowMaximum
242-ValidAnagram
242-ValidAnagram
264-UglyNumberII
264-UglyNumberII
279-PerfectSquares
279-PerfectSquares
295-FindMedianFromDataStream
295-FindMedianFromDataStream
300-LongestIncreasingSubsequence
300-LongestIncreasingSubsequence
303-rangeSumQueryImmutable
303-rangeSumQueryImmutable
304-RangeSumQuery2DImmutable
304-RangeSumQuery2DImmutable
309-BestTimeToBuyAndSellStockWithCooldown
309-BestTimeToBuyAndSellStockWithCooldown
312-BurstBalloons
312-BurstBalloons
322-CoinChange
322-CoinChange
338-CountingBits
338-CountingBits
343-IntegerBreak
343-IntegerBreak
354-RussianDollEnvelopes
354-RussianDollEnvelopes
357-CountNumbersWithUniqueDigits
357-CountNumbersWithUniqueDigits
363-MaxSumOfRectangleNoLargerThanK
363-MaxSumOfRectangleNoLargerThanK
367-ValidPerfectSquare
367-ValidPerfectSquare
368-LargestDivisibleSubset
368-LargestDivisibleSubset
374-GuessNumberHigherOrLower
374-GuessNumberHigherOrLower
375-GuessNumberHigherOrLowerII
375-GuessNumberHigherOrLowerII
376-WiggleSubsequence
376-WiggleSubsequence
377-CombinationSumIV
377-CombinationSumIV
392-IsSubsequence
392-IsSubsequence
410-SplitArrayLargestSum
410-SplitArrayLargestSum
413-arithmeticSlices
413-arithmeticSlices
416-PartitionEqualSubsetSum
416-PartitionEqualSubsetSum
446-ArithmeticSlicesIISubsequence
446-ArithmeticSlicesIISubsequence
455-AssignCookies
455-AssignCookies
464-CanIWin
464-CanIWin
467-UniqueSubstringsInWraparoundString
467-UniqueSubstringsInWraparoundString
472-ConcatenatedWords
472-ConcatenatedWords
474-OnesAndZeroes
474-OnesAndZeroes
486-PredictTheWinner
486-PredictTheWinner
494-TargetSum
494-TargetSum
514-FreedomTrail
514-FreedomTrail
516-LongestPalindromicSubsequence
516-LongestPalindromicSubsequence
517-SuperWashingMachines
517-SuperWashingMachines
523-ContinuousSubarraySum
523-ContinuousSubarraySum
546-RemoveBoxes
546-RemoveBoxes
547-friendCircles
547-friendCircles
551-StudentAttendanceRecordI
551-StudentAttendanceRecordI
552-StudentAttendanceRecordII
552-StudentAttendanceRecordII
View all files
You can’t perform that action at this time.