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 }}
qieguo2016
/
algorithm
Public
Notifications
You must be signed in to change notification settings
Fork
75
Star
372
Code
Issues
1
Pull requests
1
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Files
Expand file tree
master
Breadcrumbs
algorithm
/
cpp
/
leetcode
/
Copy path
Directory actions
More options
More options
Directory actions
More options
More options
Latest commit
History
History
History
master
Breadcrumbs
algorithm
/
cpp
/
leetcode
/
Copy path
Top
Folders and files
Name
Name
Last commit message
Last commit date
parent directory
..
1.两数之和.cpp
1.两数之和.cpp
101.对称二叉树.cpp
101.对称二叉树.cpp
102.二叉树的层序遍历.cpp
102.二叉树的层序遍历.cpp
105.从前序与中序遍历序列构造二叉树.cpp
105.从前序与中序遍历序列构造二叉树.cpp
108.将有序数组转换为二叉搜索树.cpp
108.将有序数组转换为二叉搜索树.cpp
109.有序链表转换二叉搜索树.cpp
109.有序链表转换二叉搜索树.cpp
11.盛最多水的容器.cpp
11.盛最多水的容器.cpp
120.三角形最小路径和.cpp
120.三角形最小路径和.cpp
121.买卖股票的最佳时机.cpp
121.买卖股票的最佳时机.cpp
123.买卖股票的最佳时机-iii.cpp
123.买卖股票的最佳时机-iii.cpp
128.最长连续序列.cpp
128.最长连续序列.cpp
134.加油站.cpp
134.加油站.cpp
135.分发糖果.cpp
135.分发糖果.cpp
136.只出现一次的数字.cpp
136.只出现一次的数字.cpp
146.lru-缓存.cpp
146.lru-缓存.cpp
15.三数之和.cpp
15.三数之和.cpp
152.乘积最大子数组.cpp
152.乘积最大子数组.cpp
155.最小栈.cpp
155.最小栈.cpp
16.最接近的三数之和.cpp
16.最接近的三数之和.cpp
174.地下城游戏.cpp
174.地下城游戏.cpp
179.最大数.cpp
179.最大数.cpp
19.删除链表的倒数第-n-个结点.cpp
19.删除链表的倒数第-n-个结点.cpp
198.打家劫舍.cpp
198.打家劫舍.cpp
2.两数相加.cpp
2.两数相加.cpp
207.课程表.cpp
207.课程表.cpp
208.实现-trie-前缀树.cpp
208.实现-trie-前缀树.cpp
209.长度最小的子数组.cpp
209.长度最小的子数组.cpp
210.课程表-ii.cpp
210.课程表-ii.cpp
211.添加与搜索单词-数据结构设计.cpp
211.添加与搜索单词-数据结构设计.cpp
22.括号生成.cpp
22.括号生成.cpp
23.合并k个升序链表.cpp
23.合并k个升序链表.cpp
238.除自身以外数组的乘积.cpp
238.除自身以外数组的乘积.cpp
239.滑动窗口最大值.cpp
239.滑动窗口最大值.cpp
25.k-个一组翻转链表.cpp
25.k-个一组翻转链表.cpp
279.完全平方数.cpp
279.完全平方数.cpp
283.移动零.cpp
283.移动零.cpp
297.二叉树的序列化与反序列化.cpp
297.二叉树的序列化与反序列化.cpp
3.无重复字符的最长子串.cpp
3.无重复字符的最长子串.cpp
300.最长递增子序列.cpp
300.最长递增子序列.cpp
31.下一个排列.cpp
31.下一个排列.cpp
33.搜索旋转排序数组.cpp
33.搜索旋转排序数组.cpp
34.在排序数组中查找元素的第一个和最后一个位置.cpp
34.在排序数组中查找元素的第一个和最后一个位置.cpp
39.组合总和.cpp
39.组合总和.cpp
4.寻找两个正序数组的中位数.cpp
4.寻找两个正序数组的中位数.cpp
407.接雨水-ii.cpp
407.接雨水-ii.cpp
41.缺失的第一个正数.cpp
41.缺失的第一个正数.cpp
42.接雨水.cpp
42.接雨水.cpp
45.跳跃游戏-ii.cpp
45.跳跃游戏-ii.cpp
46.全排列.cpp
46.全排列.cpp
5.最长回文子串.cpp
5.最长回文子串.cpp
51.n-皇后.cpp
51.n-皇后.cpp
53.最大子数组和.cpp
53.最大子数组和.cpp
56.合并区间.cpp
56.合并区间.cpp
60.排列序列.cpp
60.排列序列.cpp
62.不同路径.cpp
62.不同路径.cpp
63.不同路径-ii.cpp
63.不同路径-ii.cpp
68.文本左右对齐.cpp
68.文本左右对齐.cpp
72.编辑距离.cpp
72.编辑距离.cpp
74.搜索二维矩阵.cpp
74.搜索二维矩阵.cpp
75.颜色分类.cpp
75.颜色分类.cpp
76.最小覆盖子串.cpp
76.最小覆盖子串.cpp
77.组合.cpp
77.组合.cpp
78.子集.cpp
78.子集.cpp
79.单词搜索.cpp
79.单词搜索.cpp
80.删除有序数组中的重复项-ii.cpp
80.删除有序数组中的重复项-ii.cpp
81.搜索旋转排序数组-ii.cpp
81.搜索旋转排序数组-ii.cpp
84.柱状图中最大的矩形.cpp
84.柱状图中最大的矩形.cpp
85.最大矩形.cpp
85.最大矩形.cpp
94.二叉树的中序遍历.cpp
94.二叉树的中序遍历.cpp
View all files
You can’t perform that action at this time.