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
Events
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 }}
naniannuowei
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
1
(
1
)
Star
0
(
0
)
You must be signed in to star a repository
About
just for log
Activity
Stars
0
stars
Watchers
1
watching
Forks
1
fork
Report repository
main
Branches
Tags
Go to file
Code
Open more actions menu
Latest commit
History
100 Commits
100 Commits
Folders and files
Name
Name
Last commit message
Last commit date
10. Regular Expression Matching
10. Regular Expression Matching
103. Binary Tree Zigzag Level Order Traversal
103. Binary Tree Zigzag Level Order Traversal
108. Convert Sorted Array to Binary Search Tree
108. Convert Sorted Array to Binary Search Tree
116. Populating Next Right Pointers in Each Node
116. Populating Next Right Pointers in Each Node
118. Pascal's Triangle
118. Pascal's Triangle
122. Best Time to Buy and Sell Stock II
122. Best Time to Buy and Sell Stock II
125. Valid Palindrome
125. Valid Palindrome
127. Word Ladder
127. Word Ladder
130. Surrounded Regions
130. Surrounded Regions
131. Palindrome Partitioning
131. Palindrome Partitioning
134. Gas Station
134. Gas Station
138. Copy List with Random Pointer
138. Copy List with Random Pointer
140. Word Break II
140. Word Break II
148. Sort List
148. Sort List
149. Max Points on a Line
149. Max Points on a Line
150. Evaluate Reverse Polish Notation
150. Evaluate Reverse Polish Notation
162. Find Peak Element
162. Find Peak Element
166. Fraction to Recurring Decimal
166. Fraction to Recurring Decimal
171. Excel Sheet Column Number
171. Excel Sheet Column Number
172. Factorial Trailing Zeroes
172. Factorial Trailing Zeroes
179. Largest Number
179. Largest Number
189. Rotate Array
189. Rotate Array
190. Reverse Bits
190. Reverse Bits
191. Number of 1 Bits
191. Number of 1 Bits
202. Happy Number
202. Happy Number
204. Count Primes
204. Count Primes
207. Course Schedule
207. Course Schedule
210. Course Schedule II
210. Course Schedule II
212. Word Search II
212. Word Search II
215. Kth Largest Element in an Array
215. Kth Largest Element in an Array
217. Contains Duplicate
217. Contains Duplicate
218. The Skyline Problem
218. The Skyline Problem
227. Basic Calculator II
227. Basic Calculator II
230. Kth Smallest Element in a BST
230. Kth Smallest Element in a BST
231. Power of Two
231. Power of Two
235. Lowest Common Ancestor of a Binary Search Tree
235. Lowest Common Ancestor of a Binary Search Tree
237. Delete Node in a Linked List
237. Delete Node in a Linked List
242. Valid Anagram
242. Valid Anagram
26. Remove Duplicates from Sorted Array
26. Remove Duplicates from Sorted Array
268. Missing Number
268. Missing Number
28. Implement strStr()
28. Implement strStr()
287. Find the Duplicate Number
287. Find the Duplicate Number
289. Game of Life
289. Game of Life
29. Divide Two Integers
29. Divide Two Integers
292. Nim Game
292. Nim Game
295. Find Median from Data Stream
295. Find Median from Data Stream
301. Remove Invalid Parentheses
301. Remove Invalid Parentheses
315. Count of Smaller Numbers After Self
315. Count of Smaller Numbers After Self
32. Longest Valid Parentheses
32. Longest Valid Parentheses
324. Wiggle Sort II
324. Wiggle Sort II
326. Power of Three
326. Power of Three
328. Odd Even Linked List
328. Odd Even Linked List
329. Longest Increasing Path in a Matrix
329. Longest Increasing Path in a Matrix
334. Increasing Triplet Subsequence
334. Increasing Triplet Subsequence
341. Flatten Nested List Iterator
341. Flatten Nested List Iterator
344. Reverse String
344. Reverse String
350. Intersection of Two Arrays II
350. Intersection of Two Arrays II
36. Valid Sudoku
36. Valid Sudoku
371. Sum of Two Integers
371. Sum of Two Integers
378. Kth Smallest Element in a Sorted Matrix
378. Kth Smallest Element in a Sorted Matrix
38. Count and Say
38. Count and Say
380. Insert Delete GetRandom O(1)
380. Insert Delete GetRandom O(1)
384. Shuffle an Array
384. Shuffle an Array
387. First Unique Character in a String
387. First Unique Character in a String
395. Longest Substring with At Least K Repeating Characters
395. Longest Substring with At Least K Repeating Characters
399. Evaluate Division
399. Evaluate Division
4. Median of Two Sorted Arrays
4. Median of Two Sorted Arrays
41. First Missing Positive
41. First Missing Positive
412. Fizz Buzz
412. Fizz Buzz
42. Trapping Rain Water
42. Trapping Rain Water
437. Path Sum III
437. Path Sum III
438. Find All Anagrams in a String
438. Find All Anagrams in a String
44. Wildcard Matching
44. Wildcard Matching
448. Find All Numbers Disappeared in an Array
448. Find All Numbers Disappeared in an Array
454. 4Sum II
454. 4Sum II
46. Permutations
46. Permutations
461. Hamming Distance
461. Hamming Distance
494. Target Sum
494. Target Sum
5. Longest Palindromic Substring
5. Longest Palindromic Substring
50. Pow(x, n)
50. Pow(x, n)
538. Convert BST to Greater Tree
538. Convert BST to Greater Tree
54. Spiral Matrix
54. Spiral Matrix
543. Diameter of Binary Tree
543. Diameter of Binary Tree
557. Reverse Words in a String III
557. Reverse Words in a String III
560. Subarray Sum Equals K
560. Subarray Sum Equals K
581. Shortest Unsorted Continuous Subarray
581. Shortest Unsorted Continuous Subarray
617. Merge Two Binary Trees
617. Merge Two Binary Trees
621. Task Scheduler
621. Task Scheduler
647. Palindromic Substrings
647. Palindromic Substrings
66. Plus One
66. Plus One
69. Sqrt(x)
69. Sqrt(x)
73. Set Matrix Zeroes
73. Set Matrix Zeroes
739. Daily Temperatures
739. Daily Temperatures
78. Subsets
78. Subsets
79. Word Search
79. Word Search
84. Largest Rectangle in Histogram
84. Largest Rectangle in Histogram
85. Maximal Rectangle
85. Maximal Rectangle
88. Merge Sorted Array
88. Merge Sorted Array
89. Gray Code
89. Gray Code
91. Decode Ways
91. Decode Ways
View all files
About
just for log
Activity
Stars
0
stars
Watchers
1
watching
Forks
1
fork
Report repository
Releases
Packages
Contributors
You can’t perform that action at this time.