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 }}
ImportMengjie
/
Leetcode
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Issues
0
Pull requests
0
Discussions
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
master
Branches
Tags
Go to file
Code
Open more actions menu
Latest commit
History
148 Commits
148 Commits
Folders and files
Name
Name
Last commit message
Last commit date
cracking_the_coding_interview
cracking_the_coding_interview
newlife
newlife
nowcoder
nowcoder
top
top
.gitignore
.gitignore
1.two-sum.cpp
1.two-sum.cpp
10.regular-expression-matching.cpp
10.regular-expression-matching.cpp
100.相同的树.cpp
100.相同的树.cpp
101.对称二叉树.cpp
101.对称二叉树.cpp
102.二叉树的层序遍历.cpp
102.二叉树的层序遍历.cpp
103.二叉树的锯齿形层次遍历.cpp
103.二叉树的锯齿形层次遍历.cpp
104.二叉树的最大深度.cpp
104.二叉树的最大深度.cpp
105.从前序与中序遍历序列构造二叉树.cpp
105.从前序与中序遍历序列构造二叉树.cpp
106.从中序与后序遍历序列构造二叉树.cpp
106.从中序与后序遍历序列构造二叉树.cpp
107.二叉树的层次遍历-ii.cpp
107.二叉树的层次遍历-ii.cpp
108.将有序数组转换为二叉搜索树.cpp
108.将有序数组转换为二叉搜索树.cpp
1081.不同字符的最小子序列.cpp
1081.不同字符的最小子序列.cpp
109.有序链表转换二叉搜索树.cpp
109.有序链表转换二叉搜索树.cpp
11.container-with-most-water.cpp
11.container-with-most-water.cpp
110.平衡二叉树.cpp
110.平衡二叉树.cpp
1109.航班预订统计.cpp
1109.航班预订统计.cpp
111.二叉树的最小深度.cpp
111.二叉树的最小深度.cpp
1114.按序打印.cpp
1114.按序打印.cpp
112.路径总和.cpp
112.路径总和.cpp
113.路径总和-ii.cpp
113.路径总和-ii.cpp
1137.第-n-个泰波那契数.cpp
1137.第-n-个泰波那契数.cpp
114.二叉树展开为链表.cpp
114.二叉树展开为链表.cpp
1143.最长公共子序列.cpp
1143.最长公共子序列.cpp
115.不同的子序列.cpp
115.不同的子序列.cpp
116.填充每个节点的下一个右侧节点指针.cpp
116.填充每个节点的下一个右侧节点指针.cpp
117.填充每个节点的下一个右侧节点指针-ii.cpp
117.填充每个节点的下一个右侧节点指针-ii.cpp
118.杨辉三角.cpp
118.杨辉三角.cpp
119.杨辉三角-ii.cpp
119.杨辉三角-ii.cpp
12.integer-to-roman.cpp
12.integer-to-roman.cpp
120.三角形最小路径和.cpp
120.三角形最小路径和.cpp
121.买卖股票的最佳时机.cpp
121.买卖股票的最佳时机.cpp
122.买卖股票的最佳时机-ii.cpp
122.买卖股票的最佳时机-ii.cpp
123.买卖股票的最佳时机-iii.cpp
123.买卖股票的最佳时机-iii.cpp
124.二叉树中的最大路径和.cpp
124.二叉树中的最大路径和.cpp
125.验证回文串.cpp
125.验证回文串.cpp
126.单词接龙-ii.cpp
126.单词接龙-ii.cpp
127.单词接龙.cpp
127.单词接龙.cpp
128.最长连续序列.cpp
128.最长连续序列.cpp
129.求根到叶子节点数字之和.cpp
129.求根到叶子节点数字之和.cpp
13.roman-to-integer.cpp
13.roman-to-integer.cpp
130.被围绕的区域.cpp
130.被围绕的区域.cpp
131.分割回文串.cpp
131.分割回文串.cpp
1314.矩阵区域和.cpp
1314.矩阵区域和.cpp
132.分割回文串-ii.cpp
132.分割回文串-ii.cpp
133.克隆图.cpp
133.克隆图.cpp
134.加油站.cpp
134.加油站.cpp
135.分发糖果.cpp
135.分发糖果.cpp
136.只出现一次的数字.cpp
136.只出现一次的数字.cpp
137.只出现一次的数字-ii.cpp
137.只出现一次的数字-ii.cpp
138.复制带随机指针的链表.cpp
138.复制带随机指针的链表.cpp
139.单词拆分.cpp
139.单词拆分.cpp
14.longest-common-prefix.cpp
14.longest-common-prefix.cpp
140.单词拆分-ii.cpp
140.单词拆分-ii.cpp
141.环形链表.cpp
141.环形链表.cpp
142.环形链表-ii.cpp
142.环形链表-ii.cpp
143.重排链表.cpp
143.重排链表.cpp
144.二叉树的前序遍历.cpp
144.二叉树的前序遍历.cpp
145.二叉树的后序遍历.cpp
145.二叉树的后序遍历.cpp
146.lru缓存机制.cpp
146.lru缓存机制.cpp
147.对链表进行插入排序.cpp
147.对链表进行插入排序.cpp
148.排序链表.cpp
148.排序链表.cpp
149.直线上最多的点数.cpp
149.直线上最多的点数.cpp
15.3-sum.cpp
15.3-sum.cpp
150.逆波兰表达式求值.cpp
150.逆波兰表达式求值.cpp
151.翻转字符串里的单词.py
151.翻转字符串里的单词.py
152.乘积最大子数组.cpp
152.乘积最大子数组.cpp
153.寻找旋转排序数组中的最小值.cpp
153.寻找旋转排序数组中的最小值.cpp
154.寻找旋转排序数组中的最小值-ii.cpp
154.寻找旋转排序数组中的最小值-ii.cpp
155.最小栈.cpp
155.最小栈.cpp
1567.乘积为正数的最长子数组长度.cpp
1567.乘积为正数的最长子数组长度.cpp
16.3-sum-closest.cpp
16.3-sum-closest.cpp
160.相交链表.cpp
160.相交链表.cpp
162.寻找峰值.cpp
162.寻找峰值.cpp
164.最大间距.cpp
164.最大间距.cpp
165.比较版本号.cpp
165.比较版本号.cpp
166.分数到小数.cpp
166.分数到小数.cpp
167.两数之和-ii-输入有序数组.cpp
167.两数之和-ii-输入有序数组.cpp
168.excel表列名称.cpp
168.excel表列名称.cpp
169.多数元素.cpp
169.多数元素.cpp
17.letter-combinations-of-a-phone-number.cpp
17.letter-combinations-of-a-phone-number.cpp
171.excel表列序号.cpp
171.excel表列序号.cpp
172.阶乘后的零.cpp
172.阶乘后的零.cpp
173.二叉搜索树迭代器.cpp
173.二叉搜索树迭代器.cpp
174.地下城游戏.cpp
174.地下城游戏.cpp
175.Combine-Two-Tables.sql
175.Combine-Two-Tables.sql
176.Second-Highest-Salary.sql
176.Second-Highest-Salary.sql
177.Nth-Highest-Salary.sql
177.Nth-Highest-Salary.sql
178.Rank-Scores.sql
178.Rank-Scores.sql
179.最大数.cpp
179.最大数.cpp
18.4-sum.cpp
18.4-sum.cpp
180.Consecutive-Numbers.sql
180.Consecutive-Numbers.sql
187.重复的dna序列.cpp
187.重复的dna序列.cpp
188.买卖股票的最佳时机-iv.cpp
188.买卖股票的最佳时机-iv.cpp
189.旋转数组.cpp
189.旋转数组.cpp
19.remove-nth-node-from-end-of-list.cpp
19.remove-nth-node-from-end-of-list.cpp
View all files
Repository files navigation
README
More
items
Leetcode
About
No description, website, or topics provided.
Resources
Readme
Activity
Stars
1
star
Watchers
0
watching
Forks
0
forks
Report repository
Releases
Packages
Used by
Contributors
Languages
You can’t perform that action at this time.