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 }}
Uh oh!
There was an error while loading.
Please reload this page
.
ATGD
/
LeetCode
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
5
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
Files
Expand file tree
master
Breadcrumbs
LeetCode
/
leetcode4java
/
src
/
main
/
java
/
Copy path
Directory actions
More options
More options
Directory actions
More options
More options
Latest commit
History
History
History
master
Breadcrumbs
LeetCode
/
leetcode4java
/
src
/
main
/
java
/
Copy path
Top
Folders and files
Name
Name
Last commit message
Last commit date
parent directory
..
Comp_spring_2021_1采购方案
Comp_spring_2021_1采购方案
Comp_spring_2021_2乐团位置
Comp_spring_2021_2乐团位置
Gold_01_06_字符串压缩
Gold_01_06_字符串压缩
Gold_02_02_返回倒数第k个节点
Gold_02_02_返回倒数第k个节点
Gold_02_05_链表求和
Gold_02_05_链表求和
Gold_02_08_环路检测
Gold_02_08_环路检测
Gold_04_03_特定深度节点链表
Gold_04_03_特定深度节点链表
Gold_04_05_合法二叉搜索树
Gold_04_05_合法二叉搜索树
Gold_04_08_首个共同祖先
Gold_04_08_首个共同祖先
Gold_08_07_无重复字符串的排列组合
Gold_08_07_无重复字符串的排列组合
Gold_08_09_括号
Gold_08_09_括号
Gold_16_01_交换数字
Gold_16_01_交换数字
Gold_16_25_LRU缓存
Gold_16_25_LRU缓存
Gold_17_09_第k个数
Gold_17_09_第k个数
Gold_17_16_按摩师
Gold_17_16_按摩师
LCP_0006_拿硬币
LCP_0006_拿硬币
LCP_0017_速算机器人
LCP_0017_速算机器人
Meeting_0005_替换空格
Meeting_0005_替换空格
Meeting_0006_从尾到头打印链表
Meeting_0006_从尾到头打印链表
Meeting_0007_重建二叉树
Meeting_0007_重建二叉树
Meeting_0013_机器人的运动范围
Meeting_0013_机器人的运动范围
Meeting_0014_剪绳子
Meeting_0014_剪绳子
Meeting_0014_剪绳子_2
Meeting_0014_剪绳子_2
Meeting_0016_数值的整数次方
Meeting_0016_数值的整数次方
Meeting_0020_表示数值的字符串
Meeting_0020_表示数值的字符串
Meeting_0026_树的子结构
Meeting_0026_树的子结构
Meeting_0029_顺时针打印矩阵
Meeting_0029_顺时针打印矩阵
Meeting_0031_栈的压入弹出序列
Meeting_0031_栈的压入弹出序列
Meeting_0032_1_从上到下打印二叉树
Meeting_0032_1_从上到下打印二叉树
Meeting_0032_3_从上到下打印二叉树
Meeting_0032_3_从上到下打印二叉树
Meeting_0033_二叉树的后序遍历序列
Meeting_0033_二叉树的后序遍历序列
Meeting_0034_二叉树中和为某一值的路径
Meeting_0034_二叉树中和为某一值的路径
Meeting_0035_复杂链表的复制
Meeting_0035_复杂链表的复制
Meeting_0036_二叉搜索树与双向链表
Meeting_0036_二叉搜索树与双向链表
Meeting_0037_序列化二叉树
Meeting_0037_序列化二叉树
Meeting_0038_字符串的排列
Meeting_0038_字符串的排列
Meeting_0040_最小的k个数
Meeting_0040_最小的k个数
Meeting_0041_数据流中的中位数
Meeting_0041_数据流中的中位数
Meeting_0043_1到n整数中1出现的次数
Meeting_0043_1到n整数中1出现的次数
Meeting_0044_数字序列中某一位的数字
Meeting_0044_数字序列中某一位的数字
Meeting_0045_把数组排成最小的数
Meeting_0045_把数组排成最小的数
Meeting_0046_把数字翻译成字符串
Meeting_0046_把数字翻译成字符串
Meeting_0047_礼物的最大价值
Meeting_0047_礼物的最大价值
Meeting_0048_最长不含重复字符的子字符串
Meeting_0048_最长不含重复字符的子字符串
Meeting_0051_数组中的逆序对
Meeting_0051_数组中的逆序对
Meeting_0054_二叉搜索树的第k大节点
Meeting_0054_二叉搜索树的第k大节点
Meeting_0056_1_数组中数字出现的次数
Meeting_0056_1_数组中数字出现的次数
Meeting_0056_2_数组中数字出现的次数
Meeting_0056_2_数组中数字出现的次数
Meeting_0057_2_和为s的连续正数序列
Meeting_0057_2_和为s的连续正数序列
Meeting_0058_左旋转字符串
Meeting_0058_左旋转字符串
Meeting_0059_队列的最大值
Meeting_0059_队列的最大值
Meeting_0063_股票的最大利润
Meeting_0063_股票的最大利润
Meeting_0064_从1加到n
Meeting_0064_从1加到n
Meeting_02_0003_删除中间节点
Meeting_02_0003_删除中间节点
Meeting_04_0002_最小高度树
Meeting_04_0002_最小高度树
Meeting_08_12_八皇后
Meeting_08_12_八皇后
Problem_0001_两数之和
Problem_0001_两数之和
Problem_0002_两数相加
Problem_0002_两数相加
Problem_0004_寻找两个正序数组的中位数
Problem_0004_寻找两个正序数组的中位数
Problem_0005_最长回文子串
Problem_0005_最长回文子串
Problem_0007_整数反转
Problem_0007_整数反转
Problem_0008_字符串转换整数
Problem_0008_字符串转换整数
Problem_0009_回文数
Problem_0009_回文数
Problem_0010_正则表达式匹配
Problem_0010_正则表达式匹配
Problem_0011_盛最多水的容器
Problem_0011_盛最多水的容器
Problem_0012_整数转罗马数字
Problem_0012_整数转罗马数字
Problem_0013_罗马数字转整数
Problem_0013_罗马数字转整数
Problem_0014_最长公共前缀
Problem_0014_最长公共前缀
Problem_0015_三数之和
Problem_0015_三数之和
Problem_0016_最接近三数之和
Problem_0016_最接近三数之和
Problem_0017_电话号码的字母组合
Problem_0017_电话号码的字母组合
Problem_0018_四数之和
Problem_0018_四数之和
Problem_0019_删除链表的倒数第N个节点
Problem_0019_删除链表的倒数第N个节点
Problem_0020_有效的括号
Problem_0020_有效的括号
Problem_0021_合并两个有序链表
Problem_0021_合并两个有序链表
Problem_0022_括号生成
Problem_0022_括号生成
Problem_0023_合并k个排序链表
Problem_0023_合并k个排序链表
Problem_0024_两两交换链表中的节点
Problem_0024_两两交换链表中的节点
Problem_0025_K个一组翻转链表
Problem_0025_K个一组翻转链表
Problem_0026_删除排序数组中的重复项
Problem_0026_删除排序数组中的重复项
Problem_0027_移除元素
Problem_0027_移除元素
Problem_0028_实现strStr方法
Problem_0028_实现strStr方法
Problem_0029_两数相除
Problem_0029_两数相除
Problem_0032_最长有效括号
Problem_0032_最长有效括号
Problem_0035_搜索插入位置
Problem_0035_搜索插入位置
Problem_0038_报数
Problem_0038_报数
Problem_0039_组合总和
Problem_0039_组合总和
Problem_0041_缺失的第一个正数
Problem_0041_缺失的第一个正数
Problem_0042_接雨水
Problem_0042_接雨水
Problem_0043_字符串相乘
Problem_0043_字符串相乘
Problem_0044_通配符匹配
Problem_0044_通配符匹配
Problem_0045_跳跃游戏2
Problem_0045_跳跃游戏2
Problem_0046_全排列
Problem_0046_全排列
Problem_0048_旋转图像
Problem_0048_旋转图像
Problem_0050_Pow_x_n
Problem_0050_Pow_x_n
Problem_0052_N皇后2
Problem_0052_N皇后2
Problem_0053_最大子序和
Problem_0053_最大子序和
Problem_0054_螺旋矩阵
Problem_0054_螺旋矩阵
Problem_0056_合并区间
Problem_0056_合并区间
Problem_0058_最后一个单词的长度
Problem_0058_最后一个单词的长度
View all files
You can’t perform that action at this time.