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 }}
462396942
/
leetcode
Public
forked from
corpsepiges/leetcode
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
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
..
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
006. ZigZag Conversion.py
006. ZigZag Conversion.py
007. Reverse Integer.py
007. Reverse Integer.py
009. Palindrome Number.py
009. Palindrome Number.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
017. Letter Combinations of a Phone Number.py
017. Letter Combinations of a Phone Number.py
019. Remove Nth Node From End of List.py
019. Remove Nth Node From End of List.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
026. Remove Duplicates from Sorted Array.py
026. Remove Duplicates from Sorted Array.py
027. Remove Element.py
027. Remove Element.py
031. Next Permutation.py
031. Next Permutation.py
034. Search for a Range.py
034. Search for a Range.py
035. Search Insert Position.py
035. Search Insert Position.py
039. Combination Sum.py
039. Combination Sum.py
041. First Missing Positive.py
041. First Missing Positive.py
043. Multiply Strings.py
043. Multiply Strings.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
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
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
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
077. Combinations.py
077. Combinations.py
078. Subsets.py
078. Subsets.py
080. Remove Duplicates from Sorted Array II.py
080. Remove Duplicates from 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
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
093. Restore IP Addresses.py
093. Restore IP Addresses.py
094. Binary Tree Inorder Traversal.py
094. Binary Tree Inorder Traversal.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
101. Symmetric Tree.py
101. Symmetric Tree.py
102. Binary Tree Level Order Traversal.py
102. Binary Tree Level Order Traversal.py
103. Binary Tree Zigzag Level Order Traversal.py
103. Binary Tree Zigzag Level Order Traversal.py
104. Maximum Depth of Binary Tree.py
104. Maximum Depth of Binary Tree.py
105. Construct Binary Tree from Preorder and Inorder Traversal.py
105. Construct Binary Tree from Preorder and Inorder Traversal.py
106. Construct Binary Tree from Inorder and Postorder Traversal.py
106. Construct Binary Tree from Inorder and Postorder Traversal.py
107. Binary Tree Level Order Traversal II.py
107. Binary Tree Level Order Traversal II.py
108. Convert Sorted Array to Binary Search Tree.py
108. Convert Sorted Array to Binary Search Tree.py
109. Convert Sorted List to Binary Search Tree.py
109. Convert Sorted List to Binary Search Tree.py
110. Balanced Binary Tree.py
110. Balanced Binary Tree.py
111. Minimum Depth of Binary Tree.py
111. Minimum Depth of Binary Tree.py
112. Path Sum.py
112. Path Sum.py
113. Path Sum II.py
113. Path Sum II.py
114. Flatten Binary Tree to Linked List.py
114. Flatten Binary Tree to Linked List.py
116. Populating Next Right Pointers in Each Node.py
116. Populating Next Right Pointers in Each Node.py
117. Populating Next Right Pointers in Each Node II.py
117. Populating Next Right Pointers in Each Node II.py
118. Pascal's Triangle.py
118. Pascal's Triangle.py
119. Pascal's Triangle II.py
119. Pascal's Triangle II.py
120. Triangle.py
120. Triangle.py
129. Sum Root to Leaf Numbers.py
129. Sum Root to Leaf Numbers.py
133. Clone Graph.py
133. Clone Graph.py
134. Gas Station.py
134. Gas Station.py
136. Single Number.py
136. Single Number.py
138. Copy List with Random Pointer.py
138. Copy List with Random Pointer.py
141. Linked List Cycle.py
141. Linked List Cycle.py
142. Linked List Cycle II.py
142. Linked List Cycle II.py
143. Reorder List.py
143. Reorder List.py
144. Binary Tree Preorder Traversal.py
144. Binary Tree Preorder Traversal.py
145. Binary Tree Postorder Traversal.py
145. Binary Tree Postorder Traversal.py
146. LRU Cache.py
146. LRU Cache.py
148. Sort List.py
148. Sort List.py
160. Intersection of Two Linked Lists.py
160. Intersection of Two Linked Lists.py
View all files
You can’t perform that action at this time.