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 }}
Dectinc
leetcode
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
More
items
Files
Expand file tree
master
Breadcrumbs
leetcode
/
python
/
Copy path
Directory actions
More options
More options
Directory actions
More options
More options
Latest commit
History
History
History
master
Breadcrumbs
leetcode
/
python
/
Copy path
Top
Folders and files
Name
Name
Last commit message
Last commit date
parent directory
..
119 - Pascal's Triangle II.py
119 - Pascal's Triangle II.py
15 - 3Sum.py
15 - 3Sum.py
16 - 3Sum Closest.py
16 - 3Sum Closest.py
165 - Compare Version Numbers.py
165 - Compare Version Numbers.py
179 - Largest Number.py
179 - Largest Number.py
18 - 4Sum.py
18 - 4Sum.py
187 - Repeated DNA Sequences.py
187 - Repeated DNA Sequences.py
188 - Best Time to Buy and Sell Stock IV.py
188 - Best Time to Buy and Sell Stock IV.py
20151006 - Dutch National Flag.py
20151006 - Dutch National Flag.py
209 - Minimum Size Subarray Sum.py
209 - Minimum Size Subarray Sum.py
212 - Word Search II.py
212 - Word Search II.py
218 - The Skyline Problem.py
218 - The Skyline Problem.py
220 - Contains Duplicate III.py
220 - Contains Duplicate III.py
227 - Basic Calculator II.py
227 - Basic Calculator II.py
23 - Merge k Sorted Lists.py
23 - Merge k Sorted Lists.py
240 - Search a 2D Matrix II.py
240 - Search a 2D Matrix II.py
25 - Reverse Nodes in k-Group.py
25 - Reverse Nodes in k-Group.py
264 - Ugly Number II.py
264 - Ugly Number II.py
28 - Implement strStr().py
28 - Implement strStr().py
30 - Substring with Concatenation of All Words.py
30 - Substring with Concatenation of All Words.py
31 - Next Permutation.py
31 - Next Permutation.py
32 - Longest Valid Parentheses.py
32 - Longest Valid Parentheses.py
34 - Search for a Range.py
34 - Search for a Range.py
36 - Valid Sudoku.py
36 - Valid Sudoku.py
37 - Sudoku Solver.py
37 - Sudoku Solver.py
39 - Combination Sum.py
39 - Combination Sum.py
40 - Combination Sum II.py
40 - Combination Sum II.py
41 - First Missing Positive.py
41 - First Missing Positive.py
43 - Multiply Strings.py
43 - Multiply Strings.py
44 - Wildcard Matching.py
44 - Wildcard Matching.py
46 - Permutations.py
46 - Permutations.py
48 - Rotate Image.py
48 - Rotate Image.py
49 - Anagrams.py
49 - Anagrams.py
5 - Longest Palindromic Substring.py
5 - Longest Palindromic Substring.py
51 - N Queens.py
51 - N Queens.py
53 - Maximum Subarray.py
53 - Maximum Subarray.py
55 - Jump Game.py
55 - Jump Game.py
56 - Merge Intervals.py
56 - Merge Intervals.py
59 - Spiral Matrix II.py
59 - Spiral Matrix II.py
6 - ZigZag Conversion.py
6 - ZigZag Conversion.py
60 - Permutation Sequence.py
60 - Permutation Sequence.py
62 - Unique Paths.py
62 - Unique Paths.py
64 - Minimum Path Sum.py
64 - Minimum Path Sum.py
65 - Valid Number.py
65 - Valid Number.py
68 - Text Justification.py
68 - Text Justification.py
72 - Edit Distance.py
72 - Edit Distance.py
77 - Combinations.py
77 - Combinations.py
79 - Word Search.py
79 - Word Search.py
84 - Largest Rectangle in Histogram.py
84 - Largest Rectangle in Histogram.py
85 - Maximal Rectangle.py
85 - Maximal Rectangle.py
86 - Partition List.py
86 - Partition List.py
89 - Gray Code.py
89 - Gray Code.py
90 - Subsets II.py
90 - Subsets II.py
91 - Decode Ways.py
91 - Decode Ways.py
92 - Reverse Linked List II.py
92 - Reverse Linked List II.py
93 - Restore IP Addresses.py
93 - Restore IP Addresses.py
95 - Unique Binary Search Trees II.py
95 - Unique Binary Search Trees II.py
97 - Interleaving String.py
97 - Interleaving String.py
98 - Validate Binary Search Tree.py
98 - Validate Binary Search Tree.py
ListUtil.py
ListUtil.py
TreeUtil.py
TreeUtil.py
View all files
You can’t perform that action at this time.