Skip to content
Navigation Menu
Toggle navigation
Sign in
Product
GitHub Copilot
Write better code with AI
GitHub Advanced Security
Find and fix vulnerabilities
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Discussions
Collaborate outside of code
Code Search
Find more, search less
Explore
Why GitHub
All features
Documentation
GitHub Skills
Blog
Solutions
By company size
Enterprises
Small and medium teams
Startups
Nonprofits
By use case
DevSecOps
DevOps
CI/CD
View all use cases
By industry
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
Topics
AI
DevOps
Security
Software Development
View all
Explore
Learning Pathways
Events & Webinars
Ebooks & Whitepapers
Customer Stories
Partners
Executive Insights
Open Source
GitHub Sponsors
Fund open source developers
The ReadME Project
GitHub community articles
Repositories
Topics
Trending
Collections
Enterprise
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 or jump to...
Search code, repositories, users, issues, pull requests...
Search syntax tips
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Sign in
Sign up
Reseting focus
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 }}
wang9090980
/
leetcode
Public
forked from
doocs/leetcode
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
0
Security
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security
Insights
Files
master
Breadcrumbs
leetcode
/
solution
/
Copy path
Directory actions
More options
Directory actions
More options
Latest commit
History
History
master
Breadcrumbs
leetcode
/
solution
/
Top
Folders and files
Name
Name
Last commit message
Last commit date
parent directory
..
0001.Two Sum
0001.Two Sum
0002.Add Two Numbers
0002.Add Two Numbers
0003.Longest Substring Without Repeating Characters
0003.Longest Substring Without Repeating Characters
0004.Median of Two Sorted Arrays
0004.Median of Two Sorted Arrays
0005.Longest Palindromic Substring
0005.Longest Palindromic Substring
0006.ZigZag Conversion
0006.ZigZag Conversion
0007.Reverse Integer
0007.Reverse Integer
0008.String to Integer (atoi)
0008.String to Integer (atoi)
0009.Palindrome Number
0009.Palindrome Number
0010.Regular Expression Matching
0010.Regular Expression Matching
0011.Container With Most Water
0011.Container With Most Water
0012.Integer to Roman
0012.Integer to Roman
0013.Roman to Integer
0013.Roman to Integer
0014.Longest Common Prefix
0014.Longest Common Prefix
0015.3Sum
0015.3Sum
0016.3Sum Closest
0016.3Sum Closest
0017.Letter Combinations of a Phone Number
0017.Letter Combinations of a Phone Number
0018.4Sum
0018.4Sum
0019.Remove Nth Node From End of List
0019.Remove Nth Node From End of List
0020.Valid Parentheses
0020.Valid Parentheses
0021.Merge Two Sorted Lists
0021.Merge Two Sorted Lists
0022.Generate Parentheses
0022.Generate Parentheses
0023.Merge k Sorted Lists
0023.Merge k Sorted Lists
0024.Swap Nodes in Pairs
0024.Swap Nodes in Pairs
0025.Reverse Nodes in k-Group
0025.Reverse Nodes in k-Group
0026.Remove Duplicates from Sorted Array
0026.Remove Duplicates from Sorted Array
0027.Remove Element
0027.Remove Element
0028.Implement strStr()
0028.Implement strStr()
0029.Divide Two Integers
0029.Divide Two Integers
0030.Substring with Concatenation of All Words
0030.Substring with Concatenation of All Words
0031.Next Permutation
0031.Next Permutation
0032.Longest Valid Parentheses
0032.Longest Valid Parentheses
0033.Search in Rotated Sorted Array
0033.Search in Rotated Sorted Array
0034.Find First and Last Position of Element in Sorted Array
0034.Find First and Last Position of Element in Sorted Array
0035.Search Insert Position
0035.Search Insert Position
0036.Valid Sudoku
0036.Valid Sudoku
0037.Sudoku Solver
0037.Sudoku Solver
0038.Count and Say
0038.Count and Say
0039.Combination Sum
0039.Combination Sum
0040.Combination Sum II
0040.Combination Sum II
0041.First Missing Positive
0041.First Missing Positive
0042.Trapping Rain Water
0042.Trapping Rain Water
0043.Multiply Strings
0043.Multiply Strings
0044.Wildcard Matching
0044.Wildcard Matching
0045.Jump Game II
0045.Jump Game II
0046.Permutations
0046.Permutations
0047.Permutations II
0047.Permutations II
0048.Rotate Image
0048.Rotate Image
0049.Group Anagrams
0049.Group Anagrams
0050.Pow(x, n)
0050.Pow(x, n)
0051.N-Queens
0051.N-Queens
0052.N-Queens II
0052.N-Queens II
0053.Maximum Subarray
0053.Maximum Subarray
0054.Spiral Matrix
0054.Spiral Matrix
0055.Jump Game
0055.Jump Game
0056.Merge Intervals
0056.Merge Intervals
0057.Insert Interval
0057.Insert Interval
0058.Length of Last Word
0058.Length of Last Word
0059.Spiral Matrix II
0059.Spiral Matrix II
0060.Permutation Sequence
0060.Permutation Sequence
0061.Rotate List
0061.Rotate List
0062.Unique Paths
0062.Unique Paths
0063.Unique Paths II
0063.Unique Paths II
0064.Minimum Path Sum
0064.Minimum Path Sum
0065.Valid
0065.Valid
0066.Plus One
0066.Plus One
0067.Add Binary
0067.Add Binary
0068.Text Justification
0068.Text Justification
0069.Sqrt(x)
0069.Sqrt(x)
0070.Climbing Stairs
0070.Climbing Stairs
0071.Simplify Path
0071.Simplify Path
0072.Edit Distance
0072.Edit Distance
0073.Set Matrix Zeroes
0073.Set Matrix Zeroes
0074.Search a 2D Matrix
0074.Search a 2D Matrix
0075.Sort Colors
0075.Sort Colors
0076.Minimum Window Substring
0076.Minimum Window Substring
0077.Combinations
0077.Combinations
0078.Subsets
0078.Subsets
0079.Word Search
0079.Word Search
0080.Remove Duplicates from Sorted Array II
0080.Remove Duplicates from Sorted Array II
0081.Search in Rotated Sorted Array II
0081.Search in Rotated Sorted Array II
0082.Remove Duplicates from Sorted List II
0082.Remove Duplicates from Sorted List II
0083.Remove Duplicates from Sorted List
0083.Remove Duplicates from Sorted List
0084.Largest Rectangle in Histogram
0084.Largest Rectangle in Histogram
0085.Maximal Rectangle
0085.Maximal Rectangle
0086.Partition List
0086.Partition List
0087.Scramble String
0087.Scramble String
0088.Merge Sorted Array
0088.Merge Sorted Array
0089.Gray Code
0089.Gray Code
0090.Subsets II
0090.Subsets II
0091.Decode Ways
0091.Decode Ways
0092.Reverse Linked List II
0092.Reverse Linked List II
0093.Restore IP Addresses
0093.Restore IP Addresses
0094.Binary Tree Inorder Traversal
0094.Binary Tree Inorder Traversal
0095.Unique Binary Search Trees II
0095.Unique Binary Search Trees II
0096.Unique Binary Search Trees
0096.Unique Binary Search Trees
0097.Interleaving String
0097.Interleaving String
0098.Validate Binary Search Tree
0098.Validate Binary Search Tree
0099.Recover Binary Search Tree
0099.Recover Binary Search Tree
0100.Same Tree
0100.Same Tree
View all files
You can’t perform that action at this time.