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
Type
/
to 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 }}
SR2k
/
leetcode
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Issues
0
Pull requests
2
Actions
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
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
96 Commits
96 Commits
.vscode
.vscode
4
4
5
5
6
6
commons
commons
first-round
first-round
second-round
second-round
third-round
third-round
.editorconfig
.editorconfig
.eslintignore
.eslintignore
.eslintrc.js
.eslintrc.js
.gitignore
.gitignore
.npmrc
.npmrc
1.两数之和.ts
1.两数之和.ts
10.正则表达式匹配.ts
10.正则表达式匹配.ts
101.对称二叉树.ts
101.对称二叉树.ts
102.二叉树的层序遍历.ts
102.二叉树的层序遍历.ts
103.二叉树的锯齿形层序遍历.ts
103.二叉树的锯齿形层序遍历.ts
104.二叉树的最大深度.ts
104.二叉树的最大深度.ts
105.从前序与中序遍历序列构造二叉树.ts
105.从前序与中序遍历序列构造二叉树.ts
108.将有序数组转换为二叉搜索树.ts
108.将有序数组转换为二叉搜索树.ts
11.盛最多水的容器.ts
11.盛最多水的容器.ts
110.平衡二叉树.ts
110.平衡二叉树.ts
112.路径总和.ts
112.路径总和.ts
114.二叉树展开为链表.ts
114.二叉树展开为链表.ts
116.填充每个节点的下一个右侧节点指针.ts
116.填充每个节点的下一个右侧节点指针.ts
117.填充每个节点的下一个右侧节点指针-ii.ts
117.填充每个节点的下一个右侧节点指针-ii.ts
118.杨辉三角.ts
118.杨辉三角.ts
12.整数转罗马数字.ts
12.整数转罗马数字.ts
121.买卖股票的最佳时机.ts
121.买卖股票的最佳时机.ts
122.买卖股票的最佳时机-ii.ts
122.买卖股票的最佳时机-ii.ts
1239.串联字符串的最大长度.ts
1239.串联字符串的最大长度.ts
124.二叉树中的最大路径和.ts
124.二叉树中的最大路径和.ts
125.验证回文串.ts
125.验证回文串.ts
127.单词接龙.ts
127.单词接龙.ts
128.最长连续序列.py
128.最长连续序列.py
13.罗马数字转整数.ts
13.罗马数字转整数.ts
1304.和为零的-n-个不同整数.ts
1304.和为零的-n-个不同整数.ts
133.克隆图.ts
133.克隆图.ts
1344.时钟指针的夹角.ts
1344.时钟指针的夹角.ts
136.只出现一次的数字.ts
136.只出现一次的数字.ts
138.复制带随机指针的链表.ts
138.复制带随机指针的链表.ts
1386.安排电影院座位.py
1386.安排电影院座位.py
14.最长公共前缀.ts
14.最长公共前缀.ts
141.环形链表.ts
141.环形链表.ts
143.重排链表.ts
143.重排链表.ts
1448.统计二叉树中好节点的数目.ts
1448.统计二叉树中好节点的数目.ts
146.lru-缓存.ts
146.lru-缓存.ts
149.直线上最多的点数.ts
149.直线上最多的点数.ts
15.三数之和.ts
15.三数之和.ts
150.逆波兰表达式求值.ts
150.逆波兰表达式求值.ts
151.颠倒字符串中的单词.ts
151.颠倒字符串中的单词.ts
152.乘积最大子数组.ts
152.乘积最大子数组.ts
153.寻找旋转排序数组中的最小值.ts
153.寻找旋转排序数组中的最小值.ts
155.最小栈.ts
155.最小栈.ts
1578.使绳子变成彩色的最短时间.ts
1578.使绳子变成彩色的最短时间.ts
160.相交链表.ts
160.相交链表.ts
1615.最大网络秩.ts
1615.最大网络秩.ts
162.寻找峰值.ts
162.寻找峰值.ts
1647.字符频次唯一的最小删除次数.ts
1647.字符频次唯一的最小删除次数.ts
165.比较版本号.ts
165.比较版本号.ts
167.两数之和-ii-输入有序数组.ts
167.两数之和-ii-输入有序数组.ts
168.excel表列名称.ts
168.excel表列名称.ts
169.多数元素.ts
169.多数元素.ts
17.电话号码的字母组合.ts
17.电话号码的字母组合.ts
171.excel-表列序号.ts
171.excel-表列序号.ts
173.二叉搜索树迭代器.ts
173.二叉搜索树迭代器.ts
179.最大数.ts
179.最大数.ts
18.四数之和.ts
18.四数之和.ts
1822.数组元素积的符号.ts
1822.数组元素积的符号.ts
186.翻转字符串里的单词-ii.ts
186.翻转字符串里的单词-ii.ts
189.轮转数组.ts
189.轮转数组.ts
19.删除链表的倒数第-n-个结点.ts
19.删除链表的倒数第-n-个结点.ts
198.打家劫舍.ts
198.打家劫舍.ts
199.二叉树的右视图.ts
199.二叉树的右视图.ts
2.两数相加.ts
2.两数相加.ts
20.有效的括号.ts
20.有效的括号.ts
200.岛屿数量.ts
200.岛屿数量.ts
206.反转链表.ts
206.反转链表.ts
207.课程表.py
207.课程表.py
208.实现-trie-前缀树.ts
208.实现-trie-前缀树.ts
21.合并两个有序链表.ts
21.合并两个有序链表.ts
210.课程表-ii.ts
210.课程表-ii.ts
212.单词搜索-ii.py
212.单词搜索-ii.py
215.数组中的第k个最大元素.ts
215.数组中的第k个最大元素.ts
217.存在重复元素.ts
217.存在重复元素.ts
22.括号生成.ts
22.括号生成.ts
223.矩形面积.ts
223.矩形面积.ts
224.基本计算器.ts
224.基本计算器.ts
226.翻转二叉树.ts
226.翻转二叉树.ts
227.基本计算器-ii.ts
227.基本计算器-ii.ts
23.合并k个升序链表.ts
23.合并k个升序链表.ts
230.二叉搜索树中第k小的元素.ts
230.二叉搜索树中第k小的元素.ts
232.用栈实现队列.ts
232.用栈实现队列.ts
234.回文链表.ts
234.回文链表.ts
235.二叉搜索树的最近公共祖先.ts
235.二叉搜索树的最近公共祖先.ts
236.二叉树的最近公共祖先.ts
236.二叉树的最近公共祖先.ts
237.删除链表中的节点.ts
237.删除链表中的节点.ts
238.除自身以外数组的乘积.ts
238.除自身以外数组的乘积.ts
239.滑动窗口最大值.ts
239.滑动窗口最大值.ts
View all files
About
[JavaScript] 快乐刷题^ ^
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.