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
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 }}
ChanDaoH
/
LeetCode
Public
Notifications
You must be signed in to change notification settings
Fork
2
Star
1
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
.gitattributes
.gitattributes
1. Two Sum.cpp
1. Two Sum.cpp
10. Regular Expression Matching.cpp
10. Regular Expression Matching.cpp
100. Same Tree.cpp
100. Same Tree.cpp
101. Symmetric Tree.cpp
101. Symmetric Tree.cpp
102. Binary Tree Level Order Traversal.cpp
102. Binary Tree Level Order Traversal.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
106. Construct Binary Tree from Inorder and Postorder Traversal.cpp
106. Construct Binary Tree from Inorder and Postorder Traversal.cpp
107. Binary Tree Level Order Traversal II.cpp
107. Binary Tree Level Order Traversal II.cpp
11. Container With Most Water.cpp
11. Container With Most Water.cpp
118. Pascal's Triangle.cpp
118. Pascal's Triangle.cpp
12. Integer to Roman.cpp
12. Integer to Roman.cpp
121. Best Time to Buy and Sell Stock.cpp
121. Best Time to Buy and Sell Stock.cpp
122. Best Time to Buy and Sell Stock II.cpp
122. Best Time to Buy and Sell Stock II.cpp
13. Roman to Integer.cpp
13. Roman to Integer.cpp
14. Longest Common Prefix.cpp
14. Longest Common Prefix.cpp
15. 3Sum.cpp
15. 3Sum.cpp
16. 3Sum Closest.cpp
16. 3Sum Closest.cpp
17. Letter Combinations of a Phone Number.cpp
17. Letter Combinations of a Phone Number.cpp
18. 4Sum.cpp
18. 4Sum.cpp
19. Remove Nth Node From End of List.cpp
19. Remove Nth Node From End of List.cpp
20. Valid Parentheses.cpp
20. Valid Parentheses.cpp
21. Merge Two Sorted Lists.cpp
21. Merge Two Sorted Lists.cpp
22. Generate Parentheses.cpp
22. Generate Parentheses.cpp
24. Swap Nodes in Pairs.cpp
24. Swap Nodes in Pairs.cpp
26. Remove Duplicates from Sorted Array.cpp
26. Remove Duplicates from Sorted Array.cpp
27. Remove Element.cpp
27. Remove Element.cpp
28. Implement strStr().cpp
28. Implement strStr().cpp
31. Next Permutation.cpp
31. Next Permutation.cpp
33. Search in Rotated Sorted Array.cpp
33. Search in Rotated Sorted Array.cpp
34. Search for a Range.cpp
34. Search for a Range.cpp
35. Search Insert Position.cpp
35. Search Insert Position.cpp
36. Valid Sudoku.cpp
36. Valid Sudoku.cpp
37. Sudoku Solver.cpp
37. Sudoku Solver.cpp
39. Combination Sum.cpp
39. Combination Sum.cpp
3_Longest Substrin.cpp
3_Longest Substrin.cpp
4. Median of Two Sorted Arrays.cpp
4. Median of Two Sorted Arrays.cpp
40. Combination Sum II.cpp
40. Combination Sum II.cpp
41. First Missing Positive.cpp
41. First Missing Positive.cpp
42. Trapping Rain Water.cpp
42. Trapping Rain Water.cpp
43. Multiply Strings.cpp
43. Multiply Strings.cpp
45. Jump Game II.cpp
45. Jump Game II.cpp
46. Permutations.cpp
46. Permutations.cpp
47. Permutations II.cpp
47. Permutations II.cpp
48. Rotate Image.cpp
48. Rotate Image.cpp
5. Longest Palindromic Substring.cpp
5. Longest Palindromic Substring.cpp
51. N-Queens.cpp
51. N-Queens.cpp
52. N-Queens II.cpp
52. N-Queens II.cpp
53. Maximum Subarray.cpp
53. Maximum Subarray.cpp
54. Spiral Matrix.cpp
54. Spiral Matrix.cpp
55. Jump Game.cpp
55. Jump Game.cpp
56. Merge Intervals.cpp
56. Merge Intervals.cpp
57. Insert Interval.cpp
57. Insert Interval.cpp
58. Length of Last Word.cpp
58. Length of Last Word.cpp
59. Spiral Matrix II.cpp
59. Spiral Matrix II.cpp
60. Permutation Sequence.cpp
60. Permutation Sequence.cpp
61. Rotate List.cpp
61. Rotate List.cpp
62. Unique Paths.cpp
62. Unique Paths.cpp
63. Unique Paths II.cpp
63. Unique Paths II.cpp
64. Minimum Path Sum.cpp
64. Minimum Path Sum.cpp
66. Plus One.cpp
66. Plus One.cpp
67. Add Binary.cpp
67. Add Binary.cpp
70. Climbing Stairs.cpp
70. Climbing Stairs.cpp
73. Set Matrix Zeroes.cpp
73. Set Matrix Zeroes.cpp
74. Search a 2D Matrix.cpp
74. Search a 2D Matrix.cpp
75. Sort Colors.cpp
75. Sort Colors.cpp
77. Combinations.cpp
77. Combinations.cpp
78. Subsets.cpp
78. Subsets.cpp
79. Word Search.cpp
79. Word Search.cpp
80. Remove Duplicates from Sorted Array II.cpp
80. Remove Duplicates from Sorted Array II.cpp
81. Search in Rotated Sorted Array II.cpp
81. Search in Rotated Sorted Array II.cpp
82. Remove Duplicates from Sorted List II.cpp
82. Remove Duplicates from Sorted List II.cpp
83. Remove Duplicates from Sorted List.cpp
83. Remove Duplicates from Sorted List.cpp
86. Partition List.cpp
86. Partition List.cpp
88. Merge Sorted Array.cpp
88. Merge Sorted Array.cpp
9. Palindrome Number.cpp
9. Palindrome Number.cpp
90. Subsets II.cpp
90. Subsets II.cpp
92. Reverse Linked List II.cpp
92. Reverse Linked List II.cpp
94. Binary Tree Inorder Traversal.cpp
94. Binary Tree Inorder Traversal.cpp
95. Unique Binary Search Trees II.cpp
95. Unique Binary Search Trees II.cpp
96. Unique Binary Search Trees.cpp
96. Unique Binary Search Trees.cpp
Pascal's Triangle II.cpp
Pascal's Triangle II.cpp
README.md
README.md
String to Integer.cpp
String to Integer.cpp
View all files
Repository files navigation
README
More
items
LeetCode
About
LeetCode刷题记录
Resources
Readme
Activity
Stars
1
star
Watchers
1
watching
Forks
2
forks
Report repository
Releases
Packages
Contributors
Languages
You can’t perform that action at this time.