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 }}
Alexxigang
/
LeetCode
Public
Notifications
You must be signed in to change notification settings
Fork
0
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
Latest commit
History
155 Commits
155 Commits
Folders and files
Name
Name
Last commit message
Last commit date
LeetCode-09
LeetCode-09
LeetCode145【二叉树的后序遍历】
LeetCode145【二叉树的后序遍历】
LeetCode【901】-股票价格跨度
LeetCode【901】-股票价格跨度
leetcode-02
leetcode-02
leetcode-26.
leetcode-26.
leetcode-27.
leetcode-27.
leetcode-80. - II
leetcode-80. - II
【LeetCode】-1114- 按序打印
【LeetCode】-1114- 按序打印
【LeetCode】-1115. 交替打印FooBar
【LeetCode】-1115. 交替打印FooBar
【LeetCode】07-整数反转
【LeetCode】07-整数反转
【LeetCode】08-字符串转整数(atoi)
【LeetCode】08-字符串转整数(atoi)
【LeetCode】104-二叉树的最大深度
【LeetCode】104-二叉树的最大深度
【LeetCode】11-盛最多水的容器
【LeetCode】11-盛最多水的容器
【LeetCode】121-买卖股票的最佳时机
【LeetCode】121-买卖股票的最佳时机
【LeetCode】122-买卖股票的最佳时机2
【LeetCode】122-买卖股票的最佳时机2
【LeetCode】124-二叉树中的最大路径和
【LeetCode】124-二叉树中的最大路径和
【LeetCode】130-被围绕的区域
【LeetCode】130-被围绕的区域
【LeetCode】136-只出现一次的数字
【LeetCode】136-只出现一次的数字
【LeetCode】14-最长公共前缀
【LeetCode】14-最长公共前缀
【LeetCode】141-环形链表
【LeetCode】141-环形链表
【LeetCode】142-环形链表2
【LeetCode】142-环形链表2
【LeetCode】144-二叉树的前序遍历
【LeetCode】144-二叉树的前序遍历
【LeetCode】146-LRU缓存机制
【LeetCode】146-LRU缓存机制
【LeetCode】148-排序链表
【LeetCode】148-排序链表
【LeetCode】15-三数之和
【LeetCode】15-三数之和
【LeetCode】155-最小栈
【LeetCode】155-最小栈
【LeetCode】16-最接近的三数之和
【LeetCode】16-最接近的三数之和
【LeetCode】160-相交链表
【LeetCode】160-相交链表
【LeetCode】165-比较版本号
【LeetCode】165-比较版本号
【LeetCode】169-求众数
【LeetCode】169-求众数
【LeetCode】17. 电话号码的字母组合
【LeetCode】17. 电话号码的字母组合
【LeetCode】189-旋转数组
【LeetCode】189-旋转数组
【LeetCode】20-有效的括号
【LeetCode】20-有效的括号
【LeetCode】200-岛屿数量
【LeetCode】200-岛屿数量
【LeetCode】206-反转链表
【LeetCode】206-反转链表
【LeetCode】21-合并两个有序链表
【LeetCode】21-合并两个有序链表
【LeetCode】215- 数组中的第K个最大元素
【LeetCode】215- 数组中的第K个最大元素
【LeetCode】217-存在重复的元素
【LeetCode】217-存在重复的元素
【LeetCode】229-求众数2
【LeetCode】229-求众数2
【LeetCode】23-合并k个有序链表
【LeetCode】23-合并k个有序链表
【LeetCode】230-二叉搜索树中第k小的数
【LeetCode】230-二叉搜索树中第k小的数
【LeetCode】231-2的幂
【LeetCode】231-2的幂
【LeetCode】235-二叉搜索树的最近公共祖先
【LeetCode】235-二叉搜索树的最近公共祖先
【LeetCode】236-二叉树的最近公共祖先
【LeetCode】236-二叉树的最近公共祖先
【LeetCode】237-删除链表中的结点
【LeetCode】237-删除链表中的结点
【LeetCode】238-除自身以外的乘积
【LeetCode】238-除自身以外的乘积
【LeetCode】24- 两两交换链表中的节点
【LeetCode】24- 两两交换链表中的节点
【LeetCode】279-完全平方数
【LeetCode】279-完全平方数
【LeetCode】28-实现strStr
【LeetCode】28-实现strStr
【LeetCode】292-NIMA游戏
【LeetCode】292-NIMA游戏
【LeetCode】300. 最长上升子序列
【LeetCode】300. 最长上升子序列
【LeetCode】328-奇偶链表
【LeetCode】328-奇偶链表
【LeetCode】33-搜索旋转排序数组
【LeetCode】33-搜索旋转排序数组
【LeetCode】344-翻转字符串
【LeetCode】344-翻转字符串
【LeetCode】4-两个有序数组中的中位数
【LeetCode】4-两个有序数组中的中位数
【LeetCode】4-寻找两个有序数组的中位数
【LeetCode】4-寻找两个有序数组的中位数
【LeetCode】41-缺失的第一个正数
【LeetCode】41-缺失的第一个正数
【LeetCode】43-字符串相乘
【LeetCode】43-字符串相乘
【LeetCode】46-全排列
【LeetCode】46-全排列
【LeetCode】491. 递增子序列
【LeetCode】491. 递增子序列
【LeetCode】5-最长回文子串
【LeetCode】5-最长回文子串
【LeetCode】53-最大子序和
【LeetCode】53-最大子序和
【LeetCode】54-螺旋矩阵
【LeetCode】54-螺旋矩阵
【LeetCode】557-翻转字符串中的单词|||
【LeetCode】557-翻转字符串中的单词|||
【LeetCode】58-最后一个单词的长度
【LeetCode】58-最后一个单词的长度
【LeetCode】59-螺旋矩阵2
【LeetCode】59-螺旋矩阵2
【LeetCode】61-旋转链表
【LeetCode】61-旋转链表
【LeetCode】62-不同路径
【LeetCode】62-不同路径
【LeetCode】63-不同路径2
【LeetCode】63-不同路径2
【LeetCode】66-加一
【LeetCode】66-加一
【LeetCode】70-爬楼梯
【LeetCode】70-爬楼梯
【LeetCode】73. 矩阵置零
【LeetCode】73. 矩阵置零
【LeetCode】78-子集
【LeetCode】78-子集
【LeetCode】859-亲密字符串
【LeetCode】859-亲密字符串
【LeetCode】860-柠檬找零
【LeetCode】860-柠檬找零
【LeetCode】88-合并两个有序数组
【LeetCode】88-合并两个有序数组
【LeetCode】89-格雷码
【LeetCode】89-格雷码
【LeetCode】90-子集2
【LeetCode】90-子集2
【LeetCode】92-反转链表2
【LeetCode】92-反转链表2
【LeetCode】94-二叉树的中序遍历
【LeetCode】94-二叉树的中序遍历
【leetcode】861-翻转数组后的得分
【leetcode】861-翻转数组后的得分
README.md
README.md
solution.cpp
solution.cpp
View all files
Repository files navigation
README
More
items
LeetCode
Solution for LeetCode with c++
About
Solution for LeetCode with c++
Resources
Readme
Activity
Stars
1
star
Watchers
0
watching
Forks
0
forks
Report repository
Releases
Packages
Contributors
Languages
You can’t perform that action at this time.