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 }}
gyb1325
leetcode
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
More
items
leetcode
Public
Notifications
You must be signed in to change notification settings
Fork
0
(
0
)
Star
2
(
2
)
You must be signed in to star a repository
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
master
Branches
Tags
Go to file
Code
Open more actions menu
Latest commit
History
40 Commits
40 Commits
Folders and files
Name
Name
Last commit message
Last commit date
.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.