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 }}
gyb1325
/
leetcode
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
2
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
master
Branches
Tags
Go to file
Code
Open more actions menu
Folders and files
Name
Name
Last commit message
Last commit date
Latest commit
History
40 Commits
40 Commits
.gitignore
.gitignore
1. Two Sum.py
1. Two Sum.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
108. Convert Sorted Array to Binary Search Tree.py
108. Convert Sorted Array to Binary Search Tree.py
11. Container With Most Water.py
11. Container With Most Water.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
115. Distinct Subsequences.py
115. Distinct Subsequences.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
12. Integer to Roman.py
12. Integer to Roman.py
120. Triangle.py
120. Triangle.py
121. Best Time to Buy and Sell Stock.py
121. Best Time to Buy and Sell Stock.py
122. Best Time to Buy and Sell Stock II.py
122. Best Time to Buy and Sell Stock II.py
123. Best Time to Buy and Sell Stock III.py
123. Best Time to Buy and Sell Stock III.py
124. Binary Tree Maximum Path Sum.py
124. Binary Tree Maximum Path Sum.py
125. Valid Palindrome.py
125. Valid Palindrome.py
126. Word Ladder II.py
126. Word Ladder II.py
127. Word Ladder.py
127. Word Ladder.py
128. Longest Consecutive Sequence.py
128. Longest Consecutive Sequence.py
129. Sum Root to Leaf Numbers.py
129. Sum Root to Leaf Numbers.py
13. Roman to Integer.py
13. Roman to Integer.py
130. Surrounded Regions.py
130. Surrounded Regions.py
131. Palindrome Partitioning.py
131. Palindrome Partitioning.py
132. Palindrome Partitioning II.py
132. Palindrome Partitioning II.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
137. Single Number II.py
137. Single Number II.py
138. Copy List with Random Pointer.py
138. Copy List with Random Pointer.py
139. Word Break.py
139. Word Break.py
14. Longest Common Prefix.py
14. Longest Common Prefix.py
140. Word Break II.py
140. Word Break II.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
147. Insertion Sort List.py
147. Insertion Sort List.py
148. Sort List.py
148. Sort List.py
149. Max Points on a Line.py
149. Max Points on a Line.py
15. 3Sum.py
15. 3Sum.py
150. Evaluate Reverse Polish Notation.py
150. Evaluate Reverse Polish Notation.py
151. Reverse Words in a String.py
151. Reverse Words in a String.py
152. Maximum Product Subarray.py
152. Maximum Product Subarray.py
153. Find Minimum in Rotated Sorted Array.py
153. Find Minimum in Rotated Sorted Array.py
154. Find Minimum in Rotated Sorted Array II.py
154. Find Minimum in Rotated Sorted Array II.py
155. Min Stack.py
155. Min Stack.py
16. 3Sum Closest.py
16. 3Sum Closest.py
162. Find Peak Element.py
162. Find Peak Element.py
164. Maximum Gap.py
164. Maximum Gap.py
165. Compare Version Numbers.py
165. Compare Version Numbers.py
167. Two Sum II - Input array is sorted.py
167. Two Sum II - Input array is sorted.py
168. Excel Sheet Column Title.py
168. Excel Sheet Column Title.py
169. Majority Element.py
169. Majority Element.py
17. Letter Combinations of a Phone Number.py
17. Letter Combinations of a Phone Number.py
171. Excel Sheet Column Number.py
171. Excel Sheet Column Number.py
172. Factorial Trailing Zeroes.py
172. Factorial Trailing Zeroes.py
173. Binary Search Tree Iterator.py
173. Binary Search Tree Iterator.py
174. Dungeon Game.py
174. Dungeon Game.py
179. Largest Number.py
179. Largest Number.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
189. Rotate Array.py
189. Rotate Array.py
19. Remove Nth Node From End of List.py
19. Remove Nth Node From End of List.py
190. Reverse Bits.py
190. Reverse Bits.py
191. Number of 1 Bits.py
191. Number of 1 Bits.py
198. House Robber.py
198. House Robber.py
199. Binary Tree Right Side View.py
199. Binary Tree Right Side View.py
2. Add Two Numbers.py
2. Add Two Numbers.py
20. Valid Parentheses.py
20. Valid Parentheses.py
200. Number of Islands.py
200. Number of Islands.py
201. Bitwise AND of Numbers Range.py
201. Bitwise AND of Numbers Range.py
202. Happy Number.py
202. Happy Number.py
203. Remove Linked List Elements.py
203. Remove Linked List Elements.py
204. Count Primes.py
204. Count Primes.py
205. Isomorphic Strings.py
205. Isomorphic Strings.py
206. Reverse Linked List.py
206. Reverse Linked List.py
207. Course Schedule.py
207. Course Schedule.py
208. Implement Trie (Prefix Tree).py
208. Implement Trie (Prefix Tree).py
209. Minimum Size Subarray Sum.py
209. Minimum Size Subarray Sum.py
210. Course Schedule II.py
210. Course Schedule II.py
211. Add and Search Word - Data structure design.py
211. Add and Search Word - Data structure design.py
212. Word Search II.py
212. Word Search II.py
213. House Robber II.py
213. House Robber II.py
214. Shortest Palindrome.py
214. Shortest Palindrome.py
215. Kth Largest Element in an Array.py
215. Kth Largest Element in an Array.py
216. Combination Sum III.py
216. Combination Sum III.py
View all files
Repository files navigation
README
More
items
leetcode
Record every solution I come up with for the algorithms~~~
记录我的刷题点滴~~~
About
My past code on leetcode
Topics
leetcode
leetcode-python
leetcode-solutions
Resources
Readme
Activity
Stars
2
stars
Watchers
1
watching
Forks
0
forks
Report repository
Releases
Packages
Contributors
Languages
You can’t perform that action at this time.