Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Events
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
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 }}
yllg
Algorithms-JS
Repository navigation
Code
Issues
Pull requests
1
(1)
Actions
Projects
Security and quality
Insights
More
items
Algorithms-JS
Public
Notifications
You must be signed in to change notification settings
Fork
40
(
40
)
Star
90
(
90
)
You must be signed in to star a repository
About
LeetCode算法题的JS解法✏️📒 + 平时遇到的算法题、手写题汇总📗📘📙📚
Activity
Stars
90
stars
Watchers
4
watching
Forks
40
forks
Report repository
master
Branches
Tags
Go to file
Code
Open more actions menu
Latest commit
History
2,538 Commits
2,538 Commits
Folders and files
Name
Name
Last commit message
Last commit date
Sorry, we had to truncate this directory to 1,000 files. 891 entries were omitted from the list.
001.Two Sum 两数之和
001.Two Sum 两数之和
002.add-two-numbers两数相加
002.add-two-numbers两数相加
003无重复字符的最长子串
003无重复字符的最长子串
004.两个排序数组的中位数
004.两个排序数组的中位数
006.Z字形变换
006.Z字形变换
007.颠倒整数
007.颠倒整数
008.字符串转整数
008.字符串转整数
0108.零矩阵
0108.零矩阵
0109.字符串轮转
0109.字符串轮转
011.盛最多水的容器
011.盛最多水的容器
014.最长公共前缀
014.最长公共前缀
015.三数之和
015.三数之和
016.最接近的三数之和
016.最接近的三数之和
017.电话号码字母组合
017.电话号码字母组合
018.四数之和
018.四数之和
019.删除链表的倒数第n个节点
019.删除链表的倒数第n个节点
020.判断有效括号
020.判断有效括号
021.合并两个有序链表
021.合并两个有序链表
023合并K个元素的有序链表
023合并K个元素的有序链表
024.两两交换链表中的节点
024.两两交换链表中的节点
025.每K个1组翻转链表
025.每K个1组翻转链表
027.移除元素
027.移除元素
028.实现strStr()
028.实现strStr()
029.两数相除
029.两数相除
030.串联所有单词的子串
030.串联所有单词的子串
031.下一个排序
031.下一个排序
032.最长有效括号
032.最长有效括号
033.在旋转排序的数组中检索
033.在旋转排序的数组中检索
034.搜索范围
034.搜索范围
035.搜索或者插入位置
035.搜索或者插入位置
036.有效数独
036.有效数独
037.解数独
037.解数独
038.外观数列
038.外观数列
039.组合总和,所有数字和为target的组合
039.组合总和,所有数字和为target的组合
040.组合总和
040.组合总和
041.缺失的第一个正数
041.缺失的第一个正数
042.接雨水
042.接雨水
043.字符串相乘
043.字符串相乘
044.通配符匹配
044.通配符匹配
046.数组全排列、全排序
046.数组全排列、全排序
047.数组全排列2、全排序(有重复数字)
047.数组全排列2、全排序(有重复数字)
048.旋转图像
048.旋转图像
049.字母异位词分组
049.字母异位词分组
050.实现幂函数
050.实现幂函数
051.N皇后问题,返回所有的解法
051.N皇后问题,返回所有的解法
053.最大子序和
053.最大子序和
054.顺时针打印螺旋矩阵
054.顺时针打印螺旋矩阵
058.最后一个单词的的长度
058.最后一个单词的的长度
059.生成一个螺旋矩阵
059.生成一个螺旋矩阵
061.旋转链表
061.旋转链表
062.不同路径
062.不同路径
063.带障碍物的不同路径
063.带障碍物的不同路径
064.最小路径和
064.最小路径和
065.有效数字
065.有效数字
066.加一
066.加一
067.二进制求和
067.二进制求和
069.求平方根
069.求平方根
070.爬楼梯问题
070.爬楼梯问题
072.单词1换成单词2的最短编辑距离
072.单词1换成单词2的最短编辑距离
073.矩阵置零
073.矩阵置零
074.二维矩阵搜索
074.二维矩阵搜索
075.颜色分类
075.颜色分类
077.组合,1到n所有可能的K个组合
077.组合,1到n所有可能的K个组合
079.单词搜索
079.单词搜索
080.排序数组去重II 最多出现两次
080.排序数组去重II 最多出现两次
081.搜索旋转排序数组II 有重复数据
081.搜索旋转排序数组II 有重复数据
082. 删除排序链表中的重复元素 II
082. 删除排序链表中的重复元素 II
083.删除排序链表中的重复元素
083.删除排序链表中的重复元素
085.最大矩形
085.最大矩形
087.扰乱字符串
087.扰乱字符串
088. 合并两个有序数组
088. 合并两个有序数组
089. 格雷编码
089. 格雷编码
090. 子集 II
090. 子集 II
091.解码方法
091.解码方法
092.反转链表II
092.反转链表II
094. 二叉树的中序遍历
094. 二叉树的中序遍历
096. 不同的二叉搜索树 数量
096. 不同的二叉搜索树 数量
097.交错字符串
097.交错字符串
098.验证二叉搜索树
098.验证二叉搜索树
100.相同的树
100.相同的树
1000.合并石头的最低成本
1000.合并石头的最低成本
1001.网格照明
1001.网格照明
1002.查找常用字符
1002.查找常用字符
1003.检查替换后的词是否有效
1003.检查替换后的词是否有效
1004.最大连续1的个数III
1004.最大连续1的个数III
1005.K次取反后最大化的数组和
1005.K次取反后最大化的数组和
1006.笨阶乘-乘除加减
1006.笨阶乘-乘除加减
1009.十进制整数的反码
1009.十进制整数的反码
101 对称二叉树
101 对称二叉树
1010.总持续时间可被60整除的歌曲
1010.总持续时间可被60整除的歌曲
1011.在D天内送达包裹的能力
1011.在D天内送达包裹的能力
1012.至少有1位重复的数字
1012.至少有1位重复的数字
1013.数组分成和相等的三个部分
1013.数组分成和相等的三个部分
1014.最佳观光组合
1014.最佳观光组合
1015.可被K整除的只包含1的最小正整数
1015.可被K整除的只包含1的最小正整数
1016.子串能表示从1到N数字的二进制串
1016.子串能表示从1到N数字的二进制串
1017.负二进制转换
1017.负二进制转换
1018.可被5整除的二进制前缀
1018.可被5整除的二进制前缀
1019.链表中的下一个更大节点
1019.链表中的下一个更大节点
102.二叉树的层次遍历,从上往下
102.二叉树的层次遍历,从上往下
View all files
About
LeetCode算法题的JS解法✏️📒 + 平时遇到的算法题、手写题汇总📗📘📙📚
Activity
Stars
90
stars
Watchers
4
watching
Forks
40
forks
Report repository
Releases
Packages
Used by
Contributors
Languages
You can’t perform that action at this time.