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
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
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
Public
Notifications
You must be signed in to change notification settings
Fork
1
Star
1
Code
Issues
0
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
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.