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 }}
yunfengzhou-hub
/
leetcode
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
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
Latest commit
History
31 Commits
31 Commits
Folders and files
Name
Name
Last commit message
Last commit date
.vscode
.vscode
.gitignore
.gitignore
1-Two_Sum.py
1-Two_Sum.py
10. Regular Expression Matching.py
10. Regular Expression Matching.py
100. Same Tree.cpp
100. Same Tree.cpp
101. Symmetric Tree.cpp
101. Symmetric Tree.cpp
1019. Next Greater Node In Linked List.cpp
1019. Next Greater Node In Linked List.cpp
102. Binary Tree Level Order Traversal.cpp
102. Binary Tree Level Order Traversal.cpp
1021. Remove Outermost Parentheses.cpp
1021. Remove Outermost Parentheses.cpp
103. Binary Tree Zigzag Level Order Traversal.cpp
103. Binary Tree Zigzag Level Order Traversal.cpp
104. Maximum Depth of Binary Tree.cpp
104. Maximum Depth of Binary Tree.cpp
105. Construct Binary Tree from Preorder and Inorder Traversal.cpp
105. Construct Binary Tree from Preorder and Inorder Traversal.cpp
108. Convert Sorted Array to Binary Search Tree.cpp
108. Convert Sorted Array to Binary Search Tree.cpp
11-Container_with_Most_Water.py
11-Container_with_Most_Water.py
112. Path Sum.cpp
112. Path Sum.cpp
114. Flatten Binary Tree to Linked List.cpp
114. Flatten Binary Tree to Linked List.cpp
115. Distinct Subsequences.cpp
115. Distinct Subsequences.cpp
12. Integer to Roman.py
12. Integer to Roman.py
125. Valid Palindrome.py
125. Valid Palindrome.py
128-Longest Consecutive Sequence.py
128-Longest Consecutive Sequence.py
129. Sum Root to Leaf Numbers.cpp
129. Sum Root to Leaf Numbers.cpp
130. Surrounded Regions.cpp
130. Surrounded Regions.cpp
134. Gas Station.cpp
134. Gas Station.cpp
135. Candy.cpp
135. Candy.cpp
136. Single Number.cpp
136. Single Number.cpp
139. Word Break.py
139. Word Break.py
14. Longest Common Prefix.py
14. Longest Common Prefix.py
140. Word Break II.cpp
140. Word Break II.cpp
141. Linked List Cycle.cpp
141. Linked List Cycle.cpp
143. Reorder List.cpp
143. Reorder List.cpp
15-3Sum.py
15-3Sum.py
150. Evaluate Reverse Polish Notation.cpp
150. Evaluate Reverse Polish Notation.cpp
151. Reverse Words in a String.cpp
151. Reverse Words in a String.cpp
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.cpp
155. Min Stack.cpp
16-3Sum_Closest.py
16-3Sum_Closest.py
160. Intersection of Two Linked Lists.cpp
160. Intersection of Two Linked Lists.cpp
162-Find Peak Element.py
162-Find Peak Element.py
164. Maximum Gap.cpp
164. Maximum Gap.cpp
165. Compare Version Numbers.cpp
165. Compare Version Numbers.cpp
166. Fraction to Recurring Decimal.cpp
166. Fraction to Recurring Decimal.cpp
167-Two Sum II - Input array is sorted.py
167-Two Sum II - Input array is sorted.py
168. Excel Sheet Column Title.cpp
168. Excel Sheet Column Title.cpp
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.cpp
171. Excel Sheet Column Number.cpp
172. Factorial Trailing Zeroes.cpp
172. Factorial Trailing Zeroes.cpp
173. Binary Search Tree Iterator.cpp
173. Binary Search Tree Iterator.cpp
174-Dungeon Game.py
174-Dungeon Game.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.cpp
190. Reverse Bits.cpp
191. Number of 1 Bits.c
191. Number of 1 Bits.c
198. House Robber.py
198. House Robber.py
199. Binary Tree Right Side View.cpp
199. Binary Tree Right Side View.cpp
2-Add_Two_Numbers.py
2-Add_Two_Numbers.py
20. Valid Parentheses.py
20. Valid Parentheses.py
200. Number of Islands.cpp
200. Number of Islands.cpp
201. Bitwise AND of Numbers Range.cpp
201. Bitwise AND of Numbers Range.cpp
202. Happy Number.cpp
202. Happy Number.cpp
203. Remove Linked List Elements.cpp
203. Remove Linked List Elements.cpp
204. Count Primes.cpp
204. Count Primes.cpp
205. Isomorphic Strings.cpp
205. Isomorphic Strings.cpp
206. Reverse Linked List.cpp
206. Reverse Linked List.cpp
207. Course Schedule.cpp
207. Course Schedule.cpp
209. Minimum Size Subarray Sum.py
209. Minimum Size Subarray Sum.py
21. Merge Two Sorted Lists.py
21. Merge Two Sorted Lists.py
210. Course Schedule II.cpp
210. Course Schedule II.cpp
213. House Robber II.cpp
213. House Robber II.cpp
216. Combination Sum III.py
216. Combination Sum III.py
217. Contains Duplicate.py
217. Contains Duplicate.py
219. Contains Duplicate II.py
219. Contains Duplicate II.py
22. Generate Parentheses.py
22. Generate Parentheses.py
221. Maximal Square.cpp
221. Maximal Square.cpp
222. Count Complete Tree Nodes.cpp
222. Count Complete Tree Nodes.cpp
225. Implement Stack using Queues.cpp
225. Implement Stack using Queues.cpp
226. Invert Binary Tree.cpp
226. Invert Binary Tree.cpp
228. Summary Ranges.py
228. Summary Ranges.py
229. Majority Element II.py
229. Majority Element II.py
23. Merge k Sorted Lists.py
23. Merge k Sorted Lists.py
231. Power of Two.cpp
231. Power of Two.cpp
232. Implement Queue using Stacks.cpp
232. Implement Queue using Stacks.cpp
233. Number of Digit One.cpp
233. Number of Digit One.cpp
234. Palindrome Linked List.py
234. Palindrome Linked List.py
235. Lowest Common Ancestor of a Binary Search Tree.cpp
235. Lowest Common Ancestor of a Binary Search Tree.cpp
236. Lowest Common Ancestor of a Binary Tree.cpp
236. Lowest Common Ancestor of a Binary Tree.cpp
237. Delete Node in a Linked List.cpp
237. Delete Node in a Linked List.cpp
238. Product of Array Except Self.py
238. Product of Array Except Self.py
24. Swap Nodes in Pairs.py
24. Swap Nodes in Pairs.py
240. Search a 2D Matrix II.cpp
240. Search a 2D Matrix II.cpp
242. Valid Anagram.cpp
242. Valid Anagram.cpp
257. Binary Tree Paths.cpp
257. Binary Tree Paths.cpp
258. Add Digits.cpp
258. Add Digits.cpp
26-Remove_Duplicates_from_Sorted_Array.py
26-Remove_Duplicates_from_Sorted_Array.py
260. Single Number III.cpp
260. Single Number III.cpp
263. Ugly Number.cpp
263. Ugly Number.cpp
264. Ugly Number II.cpp
264. Ugly Number II.cpp
268. Missing Number.py
268. Missing Number.py
View all files
Repository files navigation
README
More
items
leetcode
This repository will back up my answers for leetcode questions
About
No description, website, or topics provided.
Resources
Readme
Activity
Stars
0
stars
Watchers
1
watching
Forks
0
forks
Report repository
Releases
Packages
Contributors
Languages
You can’t perform that action at this time.