Commit Graph

7476 Commits

Author SHA1 Message Date
zrzhit aa9dc7e185
Merge branch 'youngyangyang04:master' into master 2024-10-24 17:59:56 +08:00
Lane Zhang 775accb7fd 0226.翻转二叉树.md 修正几处 Python 代码不严谨说法 2024-10-24 10:41:30 +08:00
Leehouc 2d62182265
Update 0236.二叉树的最近公共祖先.md 2024-10-23 20:35:56 +08:00
Leehouc 779c16ca10
Update 0501.二叉搜索树中的众数.md 2024-10-23 20:32:53 +08:00
Leehouc 12236fa616
Update 0098.验证二叉搜索树.md 2024-10-23 20:32:25 +08:00
Leehouc 041ac6bbdc
Update 0530.二叉搜索树的最小绝对差.md 2024-10-23 20:31:48 +08:00
Leehouc 0c674bb917
Update 0235.二叉搜索树的最近公共祖先.md 2024-10-23 20:31:04 +08:00
Leehouc 83565ed417
错字0450.删除二叉搜索树中的节点.md 2024-10-23 20:28:57 +08:00
Leehouc 46bb8d6408
错字 0669.修剪二叉搜索树.md 2024-10-23 20:26:42 +08:00
markwang 6eb35a9737 503.下一个更大元素II增加Go版本一解法 2024-10-23 16:19:36 +08:00
Lane Zhang (张健) 8b7027f2b7
Update 二叉树的迭代遍历.md 调整注释内容 2024-10-23 12:30:11 +08:00
Lane Zhang (张健) bf540436f2
Update 二叉树的迭代遍历.md 2024-10-23 10:33:48 +08:00
Lane Zhang a36358e068 二叉树的迭代遍历.md 加入 Python 版本的后序遍历新解法 2024-10-23 10:22:58 +08:00
Lane Zhang dcbd5b4674 二叉树的递归遍历.md 去掉 Python 版本中无用的代码 2024-10-23 10:07:56 +08:00
程序员Carl d04090f22a
Merge pull request #2783 from yeahwangz/master
commit1:纠正 problems/1047.删除字符串中的所有相邻重复项.md 中 java版本 注释:将top>0纠正为top>=0   &&  commit2:纠正 0150.逆波兰表达式求值.md 的c++代码,将第21行代码的int修改为long long, 原因:既然前面考虑到可能数据值大而将int改为了long long,那么最后的RPN运算结果也 可能超过int能表示的范围
2024-10-23 09:43:39 +08:00
程序员Carl e8f6317e7f
Merge pull request #2769 from zhihali/patch-3
更改 135分发糖果 python实现
2024-10-23 09:43:16 +08:00
程序员Carl b2c41f453b
Merge pull request #2768 from DraculaJay/master
0053 添加python动态规划解法和动态规划优化解法
2024-10-23 09:42:50 +08:00
markwang 82468b6f2a 583.两个字符串的删除操作增加Go动态规划二解法 2024-10-22 11:31:15 +08:00
Lane Zhang (张健) 6e6093752f
Update 0239.滑动窗口最大值.md
Change `O(n * log(n))` to `O(n log(n))`
2024-10-22 11:00:13 +08:00
Kuxry ad93277357 添加 203.移除链表元素 Ruby 版本 2024-10-22 11:46:28 +09:00
Lane Zhang 97c4d1baec 0239.滑动窗口最大值.md 加入 Python 版本新解法:用"堆排序"实现 2024-10-22 10:22:27 +08:00
Kristy-an e5ebc38ddd fix python block code highlight problem 2024-10-21 21:12:06 -05:00
程序员Carl 12f72eac1e
Merge pull request #2767 from Camille0512/patch-1
Update 0099.岛屿的数量深搜.md Add Scala code to solve counting islands probl…
2024-10-22 10:05:15 +08:00
Lane Zhang fba159b135 0239.滑动窗口最大值.md 加入 Python 版本解法二:直接用单调队列 2024-10-22 09:20:21 +08:00
zhangrunzhe e0c1e2e317 面试题02.07.链表相交 Swift版本 2024-10-21 19:02:33 +08:00
Lane Zhang 048ec95f07 0232.用栈实现队列.md 时间复杂度应为O(1) 2024-10-21 13:10:23 +08:00
程序员Carl c0c3ebb219
Merge pull request #2766 from ZaneCodeJourney/026.Python
0226翻转二叉树,删除冗余代码
2024-10-21 09:30:11 +08:00
程序员Carl ba67402ab6
Merge pull request #2774 from EthanLiu6/master
feat: 0977.有序数组的平方 ||| python3双指针三步优化
2024-10-21 09:29:06 +08:00
程序员Carl 31a9066f41
Merge branch 'master' into feature/nextString 2024-10-21 09:28:42 +08:00
程序员Carl 3563976821
Merge pull request #2775 from Nomop/kamacoder-100-rust
Update 0100.岛屿的最大面积.md
2024-10-21 09:25:45 +08:00
程序员Carl b6c4494c50
Merge pull request #2776 from jjblaack/master
100.岛屿的最大面积 添加了java实现(dfs+bfs两种方法)
2024-10-21 09:25:27 +08:00
程序员Carl 37a37121af
Merge pull request #2763 from suinming/kamacoder-96-py
feat: 96. 城市间货物运输 III增加python解法
2024-10-18 08:42:19 +08:00
程序员Carl e02104424b
Merge pull request #2762 from suinming/kamacoder-94-SPFA-js
feat:  94. 城市间货物运输 I SPEA新增js算法
2024-10-18 08:41:40 +08:00
程序员Carl 76e3d1c860
Merge pull request #2761 from suinming/kamacoder-94-js
feat: 94. 城市间货物运输 I 新增js算法
2024-10-18 08:40:55 +08:00
程序员Carl 45b6bf2fde
Merge pull request #2760 from Camille0512/master
Update 0099.岛屿的数量广搜.md: Add Scala script for the counting island puzz…
2024-10-17 16:25:12 +08:00
markwang 09fef9f8f8 1035.不相交的线题目描述及参数名更新 2024-10-17 15:58:28 +08:00
markwang 7683e17338 1143.最长公共子序列文字勘误 2024-10-17 13:28:39 +08:00
skyclouds2001 ee4c1c584c
修正拼写:Javascript->JavaScript&Typescript->TypeScript 2024-10-17 00:27:53 +08:00
Lane Zhang 7bbf3827d1 0151.翻转字符串里的单词 增加Python版本实现5 2024-10-16 14:21:55 +08:00
ch4r1ty cb50b956eb
更新了0027.移除元素.md,增加了java暴力法 2024-10-16 00:01:58 -04:00
Lane Zhang (张健) 27585bd4f8
Update 0541.反转字符串II.md 2024-10-16 11:27:38 +08:00
Lane Zhang a4cafe0ce7 0541.反转字符串II.md 增加Python版本实现3 2024-10-16 11:25:49 +08:00
程序员Carl 371cfe182a
Merge pull request #2759 from miaoxu404/master
Update 0513.找树左下角的值.md
2024-10-16 10:18:20 +08:00
Lane Zhang abd3593c67 0454.四数相加II.html 增加Ruby版本实现 2024-10-15 13:30:09 +08:00
markwang 0be8c49ba7 0714.买卖股票的最佳时机含手续费文字勘误 2024-10-15 09:49:57 +08:00
markwang c6b12f2b18 123.买卖股票的最佳时机III增加Go版本二和版本三 2024-10-14 10:10:19 +08:00
Lane Zhang (张健) 19a6a4e369
Update 0202.快乐数.md 增加 Ruby 版本实现 2024-10-14 10:00:24 +08:00
程序员Carl 42d84f8a7f
Merge pull request #2758 from suinming/kamacoder-47-js
feat: 47. 参加科学大会新增js解法
2024-10-14 09:37:35 +08:00
程序员Carl fc9e48a2ce
Merge pull request #2757 from huanxiangxingyun/master
0005.最长回文子串 Manacher算法C++版本
2024-10-14 09:37:15 +08:00
程序员Carl 9da3575ede
Merge pull request #2764 from ZaneCodeJourney/0151.python
0151.翻转字符串里的单词 Python 版本1 删除冗余代码
2024-10-12 13:08:24 +08:00
程序员Carl fa3460c3dd
Merge pull request #2765 from ZaneCodeJourney/0541
0541.反转字符串II 思路部分 纠正笔误
2024-10-12 13:07:34 +08:00
markwang 5523957918 122.买卖股票的最佳时机II增加Go动态规划滚动数组版本 2024-10-12 10:10:05 +08:00
iYaovo a45758ef5f docs:补充0046Java代码的return语句 2024-10-11 10:13:18 +08:00
junjie2.luo 90255b837c feat: 0189.旋转数组,新增rust解法 2024-10-10 17:31:49 +08:00
junjie2.luo 83de8ac2a1 feat: 0283.移动零,新增rust解法 2024-10-10 17:25:53 +08:00
junjie2.luo 30685b815c feat: 0941.有效的山脉数组,新增rust解法 2024-10-10 17:19:43 +08:00
junjie2.luo e43323b1e1 feat: 1365.有多少小于当前数字的数字,新增rust解法 2024-10-10 17:18:41 +08:00
junjie2.luo baf7ed122b feat: 1207.独一无二的出现次数,新增rust解法 2024-10-10 17:18:04 +08:00
01geek 9128404188 Merge branch 'master' of github.com:yeahwangz/leetcode-master 2024-10-09 17:42:36 +08:00
01geek 8f692f8ff4 纠正 0150.逆波兰表达式求值.md 的c++代码,将第21行代码的int修改为long long,原因:既然前面考虑到可能数据值大而将int改为了long long,那么最后的RPN运算结果也可能超过int能表示的范围 2024-10-09 17:36:56 +08:00
01极客 cc9c105daa
Merge branch 'youngyangyang04:master' into master 2024-10-09 17:22:10 +08:00
programmercarl dbc93eb196 Update 2024-10-09 16:59:26 +08:00
programmercarl ba2062471b Update 2024-10-09 16:58:09 +08:00
01geek d33c76e74a 纠正 problems/1047.删除字符串中的所有相邻重复项.md 中java版本相关注释:将top>0纠正为top>=0 2024-10-09 16:28:31 +08:00
程序员Carl aab47d3a3d
Merge pull request #2755 from suinming/kamacoder-53-kruskal-js
feat: 53. 寻宝新增kruskal js解法
2024-10-09 09:31:24 +08:00
程序员Carl 15a0de33aa
Merge pull request #2754 from suinming/kamacoder-53-js
feat: 53. 寻宝新增js算法
2024-10-09 09:30:52 +08:00
程序员Carl edf71efdec
Merge pull request #2751 from zhihali/patch-2
纠正笔误
2024-10-09 09:30:31 +08:00
markwang fdae38cf7e 337.打家劫舍III增加Go递归解法 2024-10-08 15:16:23 +08:00
Jasonyou d3804674e4 perf:封装成类,理解起来更容易 2024-10-07 06:29:20 +08:00
Jasonyou 9c7131e253 feate: 字符串接龙 Java优化版并修复存在问题
1.使用null标志分层
2.寻找邻接节点时,回滚修改,避免多次数组复制
3.修复边界条件:beginStr==endStr时,应该输出0;
2024-10-06 03:04:09 +08:00
jjblaack a663089383 岛屿的最大面积java实现(dfs+bfs) 2024-10-05 18:07:00 +08:00
Nomop 0a33a8d05c Update 0100.岛屿的最大面积.md
100.岛屿的最大面积新增Rust解法
2024-10-05 15:21:32 +08:00
Ethan.Liu fc004742e7 feat: 0977.有序数组的平方 python3双指针三步优化 2024-10-05 12:26:05 +08:00
Camille b352ea5b95
Merge branch 'youngyangyang04:master' into master 2024-10-04 22:21:25 +08:00
Jasonyou 4eef0863a2 feat: 0100.岛屿最大面积 Java实现 2024-10-04 21:18:53 +08:00
Jasonyou 91137dc297 fix: Errata 输出输出->输入输出 2024-10-04 21:18:53 +08:00
Yufan Sheng 2b7fc7d1e1 删除冗余代码,增加详细注释 2024-10-04 21:22:50 +10:00
Yufan Sheng 07d219ecd1 更正复杂度分析中的笔误 2024-10-04 21:05:14 +10:00
程序员Carl 8217eb9e02
Merge pull request #2750 from suinming/kamacoder-109-py
feat: 109. 冗余连接II新增python解法
2024-10-03 20:02:17 +08:00
程序员Carl 8ef0a47d6c
Merge pull request #2749 from suinming/kamacoder-108-py
feat: 108. 冗余连接新增python解法
2024-10-03 20:01:50 +08:00
suinming 5fb0a12fa1 feat: 127. 骑士的攻击增加js解法 2024-10-01 17:39:24 +08:00
程序员Carl 0b7924f6a7
Merge pull request #2748 from zhihali/master
增加py的dp解法到 53.最大子序和,并添加缺失标题
2024-09-30 10:02:14 +08:00
程序员Carl 3baa82cfcd
Merge pull request #2746 from suinming/kamacoder-101-python
feat: 圖論101孤島總面積 ,新增python深搜算法
2024-09-30 10:00:54 +08:00
Zhihan Li 754d2d664d
Update 0135.分发糖果.md 2024-09-29 23:24:11 +01:00
程序员Carl 1c616a9ad2
Merge pull request #2745 from suinming/kamacoder-100-js
feat: 圖論100岛屿的最大面积,新增js深搜算法
2024-09-29 09:55:29 +08:00
DraculaJay 0ea7587f72 0055 跳跃游戏添加python 解法 2024-09-28 05:04:22 +08:00
DraculaJay 2f58a7b043 0053 添加python动态规划解法和动态规划优化解法 2024-09-28 04:55:41 +08:00
Camille 9a4dab8f89
Update 0099.岛屿的数量深搜.md Add Scala code to solve counting islands problem on LeetCode 2024-09-27 22:49:01 +08:00
Camille f35c5c5085
Merge branch 'youngyangyang04:master' into master 2024-09-27 22:45:24 +08:00
Ziyang Wen 2173dd9e64 0226.Python迭代法广度优先遍历 2024-09-27 21:26:55 +08:00
Ziyang Wen 0c29c3ed1e 0541.反转字符串II 思路 删除了多余的“在” 2024-09-27 21:23:03 +08:00
Ziyang Wen b32888260f 0151python版本1删除冗余代码 2024-09-27 21:17:44 +08:00
suinming ecf70c6e57 feat: 96. 城市间货物运输 III增加python解法 2024-09-27 19:43:51 +08:00
suinming c55a05a496 feat: 94. 城市间货物运输 I SPEA新增js算法 2024-09-27 15:59:22 +08:00
suinming 8ff9484260 feat: 94. 城市间货物运输 I 新增js算法 2024-09-27 15:20:59 +08:00
MAX d0f6653a6f Update 0112.路径总和.md
it's important to avoid using reserved keywords as variable names. so i suggest changing "sum" to "targetSum"
In order to maintain consistency with the original LeetCode problem, the term "TreeNode" can be replaced with "Optional[TreeNode]".
2024-09-27 11:51:01 +08:00
程序员Carl e7c8d01fc4
Merge pull request #2743 from tony8888lrz/master
Update 0343.整数拆分.md Java版本增加贪心算法,清晰注释
2024-09-27 10:41:13 +08:00
程序员Carl c0aae6a2d4
Merge pull request #2742 from DraculaJay/master
更新 93.复原IP地址 Python版本 剪枝操作
2024-09-27 10:38:49 +08:00
Camille 53a4a17b8c
Update 0099.岛屿的数量广搜.md: Add Scala script for the counting island puzzle using BFS algo 2024-09-26 23:06:45 +08:00
MAX 4c37cedc43 Update 0513.找树左下角的值.md
The term maxLen has ambiguity and does not align clearly with both the code and the problem statement. I propose changing it to maxDepth for improved clarity and consistency.
2024-09-26 15:07:38 +08:00