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
Developer articles
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 }}
guling
leetcode-share
Repository navigation
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
More
items
Files
Expand file tree
master
Breadcrumbs
leetcode-share
/
python
/
Copy path
Directory actions
More options
More options
Directory actions
More options
More options
Latest commit
History
History
History
master
Breadcrumbs
leetcode-share
/
python
/
Copy path
Top
Folders and files
Name
Name
Last commit message
Last commit date
parent directory
..
001 Two Sum.py
001 Two Sum.py
002 Add Two Numbers.py
002 Add Two Numbers.py
003 Longest Substring Without Repeating Characters.py
003 Longest Substring Without Repeating Characters.py
004 Median of Two Sorted Arrays.py
004 Median of Two Sorted Arrays.py
005 Longest Palindromic Substring.py
005 Longest Palindromic Substring.py
006 ZigZag Conversion.py
006 ZigZag Conversion.py
007 Reverse Integer.py
007 Reverse Integer.py
008 String to Integer.py
008 String to Integer.py
009 Palindrome Number.py
009 Palindrome Number.py
010 Regular Expression Matching.py
010 Regular Expression Matching.py
011 Container With Most Water.py
011 Container With Most Water.py
012 Integer to Roman.py
012 Integer to Roman.py
013 Roman to Integer.py
013 Roman to Integer.py
014 Longest Common Prefix.py
014 Longest Common Prefix.py
015 3Sum.py
015 3Sum.py
016 3Sum Closest.py
016 3Sum Closest.py
017 Letter Combinations of a Phone Number.py
017 Letter Combinations of a Phone Number.py
018 4Sum.py
018 4Sum.py
019 Remove Nth Node From End of List.py
019 Remove Nth Node From End of List.py
020 Valid Parentheses.py
020 Valid Parentheses.py
021 Merge Two Sorted Lists.py
021 Merge Two Sorted Lists.py
022 Generate Parentheses.py
022 Generate Parentheses.py
023 Merge k Sorted Lists.py
023 Merge k Sorted Lists.py
024 Swap Nodes in Pairs.py
024 Swap Nodes in Pairs.py
025 Reverse Nodes in k-Group.py
025 Reverse Nodes in k-Group.py
026 Remove Duplicates from Sorted Array.py
026 Remove Duplicates from Sorted Array.py
027 Remove Element.py
027 Remove Element.py
028 Implement strStr().py
028 Implement strStr().py
029 Divide Two Integers.py
029 Divide Two Integers.py
030 Substring with Concatenation of All Words.py
030 Substring with Concatenation of All Words.py
031 Next Permutation.py
031 Next Permutation.py
032 Longest Valid Parentheses.py
032 Longest Valid Parentheses.py
033 Search in Rotated Sorted Array.py
033 Search in Rotated Sorted Array.py
034 Search for a Range.py
034 Search for a Range.py
035 Search Insert Position.py
035 Search Insert Position.py
036 Valid Sudoku.py
036 Valid Sudoku.py
037 Sudoku Solver.py
037 Sudoku Solver.py
038 Count and Say.py
038 Count and Say.py
039 Combination Sum.py
039 Combination Sum.py
040 Combination Sum II.py
040 Combination Sum II.py
041 First Missing Positive.py
041 First Missing Positive.py
042 Trapping Rain Water.py
042 Trapping Rain Water.py
043 Multiply Strings.py
043 Multiply Strings.py
044 Wildcard Matching.py
044 Wildcard Matching.py
045 Jump Game II.py
045 Jump Game II.py
046 Permutations.py
046 Permutations.py
047 Permutations II.py
047 Permutations II.py
048 Rotate Image.py
048 Rotate Image.py
049 Group Anagrams.py
049 Group Anagrams.py
050 Pow(x, n).py
050 Pow(x, n).py
051 N-Queens.py
051 N-Queens.py
052 N-Queens II.py
052 N-Queens II.py
053 Maximum Subarray.py
053 Maximum Subarray.py
054 Spiral Matrix.py
054 Spiral Matrix.py
055 Jump Game.py
055 Jump Game.py
056 Merge Intervals.py
056 Merge Intervals.py
057 Insert Interval.py
057 Insert Interval.py
058 Length of Last Word.py
058 Length of Last Word.py
059 Spiral Matrix II.py
059 Spiral Matrix II.py
060 Permutation Sequence.py
060 Permutation Sequence.py
061 Rotate List.py
061 Rotate List.py
062 Unique Paths.py
062 Unique Paths.py
063 Unique Paths II.py
063 Unique Paths II.py
064 Minimum Path Sum.py
064 Minimum Path Sum.py
065 Valid Number.py
065 Valid Number.py
066 Plus One.py
066 Plus One.py
067 Add Binary.py
067 Add Binary.py
068 Text Justification.py
068 Text Justification.py
069 Sqrt(x).py
069 Sqrt(x).py
070 Climbing Stairs.py
070 Climbing Stairs.py
071 Simplify Path.py
071 Simplify Path.py
072 Edit Distance.py
072 Edit Distance.py
073 Set Matrix Zeroes.py
073 Set Matrix Zeroes.py
074 Search a 2D Matrix.py
074 Search a 2D Matrix.py
075 Sort Colors.py
075 Sort Colors.py
076 Minimum Window Substring.py
076 Minimum Window Substring.py
077 Combinations.py
077 Combinations.py
078 Subsets.py
078 Subsets.py
079 Word Search.py
079 Word Search.py
080 Remove Duplicates from Sorted Array II.py
080 Remove Duplicates from Sorted Array II.py
081 Search in Rotated Sorted Array II.py
081 Search in Rotated Sorted Array II.py
082 Remove Duplicates from Sorted List II.py
082 Remove Duplicates from Sorted List II.py
083 Remove Duplicates from Sorted List.py
083 Remove Duplicates from Sorted List.py
084 Largest Rectangle in Histogram.py
084 Largest Rectangle in Histogram.py
085 Maximal Rectangle.py
085 Maximal Rectangle.py
086 Partition List.py
086 Partition List.py
087 Scramble String.py
087 Scramble String.py
088 Merge Sorted Array.py
088 Merge Sorted Array.py
089 Gray Code.py
089 Gray Code.py
090 Subsets II.py
090 Subsets II.py
091 Decode Ways.py
091 Decode Ways.py
092 Reverse Linked List II.py
092 Reverse Linked List II.py
093 Restore IP Addresses.py
093 Restore IP Addresses.py
094 Binary Tree Inorder Traversal.py
094 Binary Tree Inorder Traversal.py
095 Unique Binary Search Trees II.py
095 Unique Binary Search Trees II.py
096 Unique Binary Search Trees.py
096 Unique Binary Search Trees.py
097 Interleaving String.py
097 Interleaving String.py
098 Validate Binary Search Tree.py
098 Validate Binary Search Tree.py
099 Recover Binary Search Tree.py
099 Recover Binary Search Tree.py
100 Same Tree.py
100 Same Tree.py
View all files
You can’t perform that action at this time.