https://github.com/poppinlp/leetcode
Easy understand JS solutions for problems on leetcode which beats 90% at least.
https://github.com/poppinlp/leetcode
algorithm contest interview javascript leetcode
Last synced: 2 months ago
JSON representation
Easy understand JS solutions for problems on leetcode which beats 90% at least.
- Host: GitHub
- URL: https://github.com/poppinlp/leetcode
- Owner: poppinlp
- License: mit
- Created: 2019-08-10T09:26:44.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-03-20T09:04:42.000Z (over 3 years ago)
- Last Synced: 2024-04-14T05:59:40.525Z (about 1 year ago)
- Topics: algorithm, contest, interview, javascript, leetcode
- Language: JavaScript
- Homepage:
- Size: 42.7 MB
- Stars: 26
- Watchers: 4
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 宝宝也能看懂的 LEETCODE 题解
Hi 大家好,我是张小猪。欢迎来到『宝宝也能看懂』系列之 leetcode 题解。
什么?你不是宝宝?哼,不管不管 >.<
## 亮点
- 详细解释,通俗易懂
- 包含思路或优化过程
- 基于每周比赛、专题分类和标签
- 代码基于 JS ES2015+ 实现
- 性能 beats 90% 以上
- 不包含订阅才能解锁的题目(其实就是我没订阅 T_T## 关于本猪
本小猪非算法大佬,所以可能并不是最优解。不过从提交后运行耗时来看,应该不算太差。
如果你喜欢或者对你有帮助,那就 Star 一下吧
如果你发现有任何问题,欢迎 PR 修正。持续施工中,大量内容还未搬迁过来。以后应该会直接产出基于 markdown 生成的网页内容,方便浏览。
## 专题
### Linked List
以下列表是[Linked List 标签列表](https://leetcode.com/tag/linked-list/)根据难度排序的结果:
- 1290\. Convert Binary Number in a Linked List to Integer
- [代码 | code](./code/1290.js)
- [中文题解] TBD
- [leetcode post]()
- [LOCKED] 1474\. Delete N Nodes After M Nodes of a Linked List
- 876\. Middle of the Linked List
- [代码 | code](./code/876.js)
- [中文题解] TBD
- [leetcode post]()
### String以下列表是[Linked List 标签列表](https://leetcode.com/tag/string/)根据难度排序的结果:
- 1790\. 仅执行一次字符串交换能否使两个字符串相等 (Check if One String Swap Can Make Strings Equal)
- [代码 | code](./code/1790.js)
- [中文题解](./posts/1790.md)
- [leetcode post](https://leetcode.com/problems/check-if-one-string-swap-can-make-strings-equal/discuss/1111937/JavaScript-Easy-to-understand-2-solutions)### Sliding Window
以下列表是[Sliding Window 标签列表](https://leetcode.com/tag/sliding-window/)根据难度排序的结果:
- [LOCKED] 1176. Diet Plan Performance
- [LOCKED] 1100. Find K-Length Substrings With No Repeated Characters
- [LOCKED] 1151. Minimum Swaps to Group All 1's Together
- [1004. Max Consecutive Ones III](./code/1004.js)
- [1208. Get Equal Substrings Within Budget](./code/1208.js)
- [1438. Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit](./code/1438.js)## LEETCODE 周赛
### Weekly Contest 175
- [1346. 检查整数及其两倍数是否存在](./posts/1346.md)
- [1347. 制造字母异位词的最小步骤数](./posts/1347.md)
- [1348. 推文计数](./posts/1348.md)### Weekly Contest 174
- [1337. 方阵中战斗力最弱的 K 行](./posts/1337.md)
- [1338. 数组大小减半](./posts/1338.md)
- [1339. 分裂二叉树的最大乘积](./posts/1339.md)
- [1340. 跳跃游戏 V](./posts/1340.md)### Weekly Contest 173
- [1332. 删除回文子序列](./posts/1332.md)
- [1333. 餐厅过滤器](./posts/1333.md)
- [1334. 阈值距离内邻居最少的城市](./posts/1334.md)
- [1335. 工作计划的最低难度](./posts/1335.md)### Weekly Contest 172
- [1323. 6 和 9 组成的最大数字](./posts/1323.md)
- [1324. 竖直打印单词](./posts/1324.md)
- [1325. 删除给定值的叶子节点](./posts/1325.md)
- [1326. 灌溉花园的最少水龙头数目](./posts/1326.md)### Weekly Contest 171
- [1317. 将整数转换为两个无零整数的和](./posts/1317.md)
- [1318. 或运算的最小翻转次数](./posts/1318.md)
- [1319. 连通网络的操作次数](./posts/1319.md)
- [1320. 二指输入的的最小距离](./posts/1320.md)### Weekly Contest 170
- [1309. 解码字母到整数映射](./posts/1309.md)
- [1310. 子数组异或查询](./posts/1310.md)
- [1311. 获取你好友已观看的视频](./posts/1311.md)
- [1312. 让字符串成为回文串的最少插入次数](./posts/1312.md)### Weekly Contest 169
- [1304. 和为零的N个唯一整数](./posts/1304.md)
- [1305. 两棵二叉搜索树中的所有元素](./posts/1305.md)
- [1306. 跳跃游戏 III](./posts/1306.md)
- [1307. 口算难题](./posts/1307.md)### Weekly Contest 168
- [1295. 统计位数为偶数的数字](./posts/1295.md)
- [1296. 划分数组为连续数字的集合](./posts/1296.md)
- [1297. 子串的最大出现次数](./posts/1297.md)
- [1298. 你能从盒子里获得的最大糖果数](./posts/1298.md)## 活动
### 30-Day LeetCoding Challenge
活动地址在[这里](https://leetcode.com/explore/challenge/card/30-day-leetcoding-challenge/)(如果被重定向回中文站了,去掉域名里的 `-cn` 即可)。
- 4 月 1 号:[136. 只出现一次的数字](./30-Day%20LeetCoding%20Challenge/1.md)
- 4 月 2 号:[202. 快乐数](./30-Day%20LeetCoding%20Challenge/2.md)
- 4 月 3 号:[53. 最大子序和](./30-Day%20LeetCoding%20Challenge/3.md)
- 4 月 4 号:[283. 移动零](./30-Day%20LeetCoding%20Challenge/4.md)
- 4 月 5 号:[122. 买卖股票的最佳时机 II](./30-Day%20LeetCoding%20Challenge/5.md)
- 4 月 6 号:[49. 字母异位词分组](./30-Day%20LeetCoding%20Challenge/6.md)
- 4 月 7 号:[新题. Counting Elements](./30-Day%20LeetCoding%20Challenge/7.md)
- 4 月 8 号:[876. 链表的中间结点](./30-Day%20LeetCoding%20Challenge/8.md)
- 4 月 9 号:[844. 比较含退格的字符串](./30-Day%20LeetCoding%20Challenge/9.md)
- 4 月 10 号:[155. 最小栈](./30-Day%20LeetCoding%20Challenge/10.md)
- 4 月 11 号:[543. 二叉树的直径](./30-Day%20LeetCoding%20Challenge/11.md)
- 4 月 12 号:[1046. 最后一块石头的重量](./30-Day%20LeetCoding%20Challenge/12.md)