Skip to content

Commit 25beacf

Browse files
authored
Merge branch 'youngyangyang04:master' into master
2 parents 3176a0c + b489cb6 commit 25beacf

File tree

289 files changed

+2140
-3367
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

289 files changed

+2140
-3367
lines changed

README.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,14 @@
6969

7070
## 前序
7171

72-
* [「代码随想录」学习社区](https://programmercarl.com/other/kstar.html)
72+
* [做项目(多个C++、Java、Go、前端、测开项目)](https://programmercarl.com/other/kstar.html)
7373

7474

7575
* 编程语言
7676
* [C++面试&C++学习指南知识点整理](https://github.com/youngyangyang04/TechCPP)
7777
* [编程语言基础课](https://kamacoder.com/courseshop.php)
7878
* [23种设计模式](https://github.com/youngyangyang04/kama-DesignPattern)
79+
* [大厂算法笔试题](https://kamacoder.com/company.php)
7980

8081
* 工具
8182
* [一站式vim配置](https://github.com/youngyangyang04/PowerVim)
@@ -180,7 +181,7 @@
180181

181182

182183
题目分类大纲如下:
183-
<img src='https://code-thinking-1253855093.file.myqcloud.com/pics/20240424172231.png' width=600 alt='二叉树大纲'> </img></div>
184+
<img src='https://file.kamacoder.com/pics/20240424172231.png' width=600 alt='二叉树大纲'> </img></div>
184185

185186
1. [关于二叉树,你该了解这些!](./problems/二叉树理论基础.md)
186187
2. [二叉树:二叉树的递归遍历](./problems/二叉树的递归遍历.md)
@@ -221,7 +222,7 @@
221222

222223
题目分类大纲如下:
223224

224-
<img src='https://code-thinking-1253855093.file.myqcloud.com/pics/20240424172311.png' width=600 alt='回溯算法大纲'> </img></div>
225+
<img src='https://file.kamacoder.com/pics/20240424172311.png' width=600 alt='回溯算法大纲'> </img></div>
225226

226227
1. [关于回溯算法,你该了解这些!](./problems/回溯算法理论基础.md)
227228
2. [回溯算法:77.组合](./problems/0077.组合.md)
@@ -251,7 +252,7 @@
251252
题目分类大纲如下:
252253

253254

254-
<img src='https://code-thinking-1253855093.file.myqcloud.com/pics/20210917104315.png' width=600 alt='贪心算法大纲'> </img></div>
255+
<img src='https://file.kamacoder.com/pics/20210917104315.png' width=600 alt='贪心算法大纲'> </img></div>
255256

256257
1. [关于贪心算法,你该了解这些!](./problems/贪心算法理论基础.md)
257258
2. [贪心算法:455.分发饼干](./problems/0455.分发饼干.md)
@@ -385,9 +386,9 @@
385386
9. [图论:沉没孤岛](./problems/kamacoder/0102.沉没孤岛.md)
386387
10. [图论:水流问题](./problems/kamacoder/0103.水流问题.md)
387388
11. [图论:建造最大岛屿](./problems/kamacoder/0104.建造最大岛屿.md)
388-
12. [图论:字符串接龙](./problems/kamacoder/0110.字符串接龙.md)
389-
13. [图论:有向图的完全可达性](./problems/kamacoder/0105.有向图的完全可达性.md)
390-
14. [图论:岛屿的周长](./problems/kamacoder/0106.岛屿的周长.md)
389+
12. [图论:岛屿的周长](./problems/kamacoder/0106.岛屿的周长.md)
390+
13. [图论:字符串接龙](./problems/kamacoder/0110.字符串接龙.md)
391+
14. [图论:有向图的完全可达性](./problems/kamacoder/0105.有向图的完全可达性.md)
391392
15. [图论:并查集理论基础](./problems/kamacoder/图论并查集理论基础.md)
392393
16. [图论:寻找存在的路径](./problems/kamacoder/0107.寻找存在的路径.md)
393394
17. [图论:冗余连接](./problems/kamacoder/0108.冗余连接.md)
@@ -502,5 +503,5 @@
502503

503504
添加微信记得备注,如果是已工作,备注:姓名-城市-岗位。如果学生,备注:姓名-学校-年级。**备注没有自我介绍不通过哦**
504505

505-
<div align="center"><img src="https://code-thinking-1253855093.file.myqcloud.com/pics/第二企业刷题活码.png" data-img="1" width="200" height="200"></img></div>
506+
<div align="center"><img src="https://file.kamacoder.com/pics/第二企业刷题活码.png" data-img="1" width="200" height="200"></img></div>
506507

pics/阿里云.png

-333 KB
Binary file not shown.

problems/0001.两数之和.md

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
<p align="center">
2-
<a href="https://www.programmercarl.com/xunlian/xunlianying.html" target="_blank">
3-
<img src="../pics/训练营.png" width="1000"/>
4-
</a>
5-
<p align="center"><strong><a href="./qita/join.md">参与本项目</a>,贡献其他语言版本的代码,拥抱开源,让更多学习算法的小伙伴们受益!</strong></p>
1+
* [做项目(多个C++、Java、Go、测开、前端项目)](https://www.programmercarl.com/other/kstar.html)
2+
* [刷算法(两个月高强度学算法)](https://www.programmercarl.com/xunlian/xunlianying.html)
3+
* [背八股(40天挑战高频面试题)](https://www.programmercarl.com/xunlian/bagu.html)
64

75

86
# 1. 两数之和
@@ -85,10 +83,10 @@ map目的用来存放我们访问过的元素,因为遍历数组的时候,
8583

8684
过程如下:
8785

88-
![过程一](https://code-thinking-1253855093.file.myqcloud.com/pics/20220711202638.png)
86+
![过程一](https://file.kamacoder.com/pics/20220711202638.png)
8987

9088

91-
![过程二](https://code-thinking-1253855093.file.myqcloud.com/pics/20230220223536.png)
89+
![过程二](https://file.kamacoder.com/pics/20230220223536.png)
9290

9391
C++代码:
9492

@@ -557,7 +555,3 @@ int* twoSum(int* nums, int numsSize, int target, int* returnSize){
557555
}
558556
```
559557

560-
<p align="center">
561-
<a href="https://programmercarl.com/other/kstar.html" target="_blank">
562-
<img src="../pics/网站星球宣传海报.jpg" width="1000"/>
563-
</a>

problems/0005.最长回文子串.md

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
<p align="center">
2-
<a href="https://www.programmercarl.com/xunlian/xunlianying.html" target="_blank">
3-
<img src="../pics/训练营.png" width="1000"/>
4-
</a>
5-
<p align="center"><strong><a href="./qita/join.md">参与本项目</a>,贡献其他语言版本的代码,拥抱开源,让更多学习算法的小伙伴们受益!</strong></p>
1+
* [做项目(多个C++、Java、Go、测开、前端项目)](https://www.programmercarl.com/other/kstar.html)
2+
* [刷算法(两个月高强度学算法)](https://www.programmercarl.com/xunlian/xunlianying.html)
3+
* [背八股(40天挑战高频面试题)](https://www.programmercarl.com/xunlian/bagu.html)
64

75

86

@@ -108,7 +106,7 @@ dp[i][j]可以初始化为true么? 当然不行,怎能刚开始就全都匹
108106

109107
dp[i + 1][j - 1] 在 dp[i][j]的左下角,如图:
110108

111-
![647.回文子串](https://code-thinking-1253855093.file.myqcloud.com/pics/20210121171032473.jpg)
109+
![647.回文子串](https://file.kamacoder.com/pics/20210121171032473.jpg)
112110

113111
如果这矩阵是从上到下,从左到右遍历,那么会用到没有计算过的dp[i + 1][j - 1],也就是根据不确定是不是回文的区间[i+1,j-1],来判断了[i,j]是不是回文,那结果一定是不对的。
114112

@@ -142,7 +140,7 @@ for (int i = s.size() - 1; i >= 0; i--) { // 注意遍历顺序
142140

143141
举例,输入:"aaa",dp[i][j]状态如下:
144142

145-
![647.回文子串1](https://code-thinking-1253855093.file.myqcloud.com/pics/20210121171059951.jpg)
143+
![647.回文子串1](https://file.kamacoder.com/pics/20210121171059951.jpg)
146144

147145
**注意因为dp[i][j]的定义,所以j一定是大于等于i的,那么在填充dp[i][j]的时候一定是只填充右上半部分**
148146

@@ -731,8 +729,4 @@ public class Solution {
731729
```
732730

733731

734-
<p align="center">
735-
<a href="https://programmercarl.com/other/kstar.html" target="_blank">
736-
<img src="../pics/网站星球宣传海报.jpg" width="1000"/>
737-
</a>
738732

problems/0015.三数之和.md

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
<p align="center">
2-
<a href="https://www.programmercarl.com/xunlian/xunlianying.html" target="_blank">
3-
<img src="../pics/训练营.png" width="1000"/>
4-
</a>
5-
<p align="center"><strong><a href="./qita/join.md">参与本项目</a>,贡献其他语言版本的代码,拥抱开源,让更多学习算法的小伙伴们受益!</strong></p>
1+
* [做项目(多个C++、Java、Go、测开、前端项目)](https://www.programmercarl.com/other/kstar.html)
2+
* [刷算法(两个月高强度学算法)](https://www.programmercarl.com/xunlian/xunlianying.html)
3+
* [背八股(40天挑战高频面试题)](https://www.programmercarl.com/xunlian/bagu.html)
64

75

86

@@ -980,7 +978,3 @@ object Solution {
980978
}
981979
```
982980

983-
<p align="center">
984-
<a href="https://programmercarl.com/other/kstar.html" target="_blank">
985-
<img src="../pics/网站星球宣传海报.jpg" width="1000"/>
986-
</a>

problems/0017.电话号码的字母组合.md

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
<p align="center">
2-
<a href="https://www.programmercarl.com/xunlian/xunlianying.html" target="_blank">
3-
<img src="../pics/训练营.png" width="1000"/>
4-
</a>
5-
<p align="center"><strong><a href="./qita/join.md">参与本项目</a>,贡献其他语言版本的代码,拥抱开源,让更多学习算法的小伙伴们受益!</strong></p>
1+
* [做项目(多个C++、Java、Go、测开、前端项目)](https://www.programmercarl.com/other/kstar.html)
2+
* [刷算法(两个月高强度学算法)](https://www.programmercarl.com/xunlian/xunlianying.html)
3+
* [背八股(40天挑战高频面试题)](https://www.programmercarl.com/xunlian/bagu.html)
64

75

86
# 17.电话号码的字母组合
@@ -13,7 +11,7 @@
1311

1412
给出数字到字母的映射如下(与电话按键相同)。注意 1 不对应任何字母。
1513

16-
![17.电话号码的字母组合](https://code-thinking-1253855093.file.myqcloud.com/pics/2020102916424043.png)
14+
![17.电话号码的字母组合](https://file.kamacoder.com/pics/2020102916424043.png)
1715

1816
示例:
1917
* 输入:"23"
@@ -66,7 +64,7 @@ const string letterMap[10] = {
6664

6765
例如:输入:"23",抽象为树形结构,如图所示:
6866

69-
![17. 电话号码的字母组合](https://code-thinking-1253855093.file.myqcloud.com/pics/20201123200304469.png)
67+
![17. 电话号码的字母组合](https://file.kamacoder.com/pics/20201123200304469.png)
7068

7169
图中可以看出遍历的深度,就是输入"23"的长度,而叶子节点就是我们要收集的结果,输出["ad", "ae", "af", "bd", "be", "bf", "cd", "ce", "cf"]
7270

@@ -766,7 +764,3 @@ public class Solution
766764
```
767765

768766

769-
<p align="center">
770-
<a href="https://programmercarl.com/other/kstar.html" target="_blank">
771-
<img src="../pics/网站星球宣传海报.jpg" width="1000"/>
772-
</a>

problems/0018.四数之和.md

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
<p align="center">
2-
<a href="https://www.programmercarl.com/xunlian/xunlianying.html" target="_blank">
3-
<img src="../pics/训练营.png" width="1000"/>
4-
</a>
5-
<p align="center"><strong><a href="./qita/join.md">参与本项目</a>,贡献其他语言版本的代码,拥抱开源,让更多学习算法的小伙伴们受益!</strong></p>
1+
* [做项目(多个C++、Java、Go、测开、前端项目)](https://www.programmercarl.com/other/kstar.html)
2+
* [刷算法(两个月高强度学算法)](https://www.programmercarl.com/xunlian/xunlianying.html)
3+
* [背八股(40天挑战高频面试题)](https://www.programmercarl.com/xunlian/bagu.html)
64

75

86
> 一样的道理,能解决四数之和
@@ -798,8 +796,4 @@ def four_sum(nums, target)
798796
end
799797
```
800798

801-
<p align="center">
802-
<a href="https://programmercarl.com/other/kstar.html" target="_blank">
803-
<img src="../pics/网站星球宣传海报.jpg" width="1000"/>
804-
</a>
805799

problems/0019.删除链表的倒数第N个节点.md

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
<p align="center">
2-
<a href="https://www.programmercarl.com/xunlian/xunlianying.html" target="_blank">
3-
<img src="../pics/训练营.png" width="1000"/>
4-
</a>
5-
<p align="center"><strong><a href="./qita/join.md">参与本项目</a>,贡献其他语言版本的代码,拥抱开源,让更多学习算法的小伙伴们受益!</strong></p>
1+
* [做项目(多个C++、Java、Go、测开、前端项目)](https://www.programmercarl.com/other/kstar.html)
2+
* [刷算法(两个月高强度学算法)](https://www.programmercarl.com/xunlian/xunlianying.html)
3+
* [背八股(40天挑战高频面试题)](https://www.programmercarl.com/xunlian/bagu.html)
64

75

86

@@ -18,7 +16,7 @@
1816
示例 1:
1917

2018

21-
![19.删除链表的倒数第N个节点](https://code-thinking-1253855093.file.myqcloud.com/pics/20210510085957392.png)
19+
![19.删除链表的倒数第N个节点](https://file.kamacoder.com/pics/20210510085957392.png)
2220

2321
输入:head = [1,2,3,4,5], n = 2
2422
输出:[1,2,3,5]
@@ -479,7 +477,3 @@ public class Solution {
479477
}
480478
}
481479
```
482-
<p align="center">
483-
<a href="https://programmercarl.com/other/kstar.html" target="_blank">
484-
<img src="../pics/网站星球宣传海报.jpg" width="1000"/>
485-
</a>

problems/0020.有效的括号.md

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
<p align="center">
2-
<a href="https://www.programmercarl.com/xunlian/xunlianying.html" target="_blank">
3-
<img src="../pics/训练营.png" width="1000"/>
4-
</a>
5-
<p align="center"><strong><a href="./qita/join.md">参与本项目</a>,贡献其他语言版本的代码,拥抱开源,让更多学习算法的小伙伴们受益!</strong></p>
1+
* [做项目(多个C++、Java、Go、测开、前端项目)](https://www.programmercarl.com/other/kstar.html)
2+
* [刷算法(两个月高强度学算法)](https://www.programmercarl.com/xunlian/xunlianying.html)
3+
* [背八股(40天挑战高频面试题)](https://www.programmercarl.com/xunlian/bagu.html)
64

75

86

@@ -83,13 +81,13 @@ cd a/b/c/../../
8381

8482

8583
1. 第一种情况,字符串里左方向的括号多余了 ,所以不匹配。
86-
![括号匹配1](https://code-thinking-1253855093.file.myqcloud.com/pics/2020080915505387.png)
84+
![括号匹配1](https://file.kamacoder.com/pics/2020080915505387.png)
8785

8886
2. 第二种情况,括号没有多余,但是 括号的类型没有匹配上。
89-
![括号匹配2](https://code-thinking-1253855093.file.myqcloud.com/pics/20200809155107397.png)
87+
![括号匹配2](https://file.kamacoder.com/pics/20200809155107397.png)
9088

9189
3. 第三种情况,字符串里右方向的括号多余了,所以不匹配。
92-
![括号匹配3](https://code-thinking-1253855093.file.myqcloud.com/pics/20200809155115779.png)
90+
![括号匹配3](https://file.kamacoder.com/pics/20200809155115779.png)
9391

9492

9593

@@ -574,8 +572,4 @@ impl Solution {
574572
}
575573
```
576574

577-
<p align="center">
578-
<a href="https://programmercarl.com/other/kstar.html" target="_blank">
579-
<img src="../pics/网站星球宣传海报.jpg" width="1000"/>
580-
</a>
581575

problems/0024.两两交换链表中的节点.md

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
<p align="center">
2-
<a href="https://www.programmercarl.com/xunlian/xunlianying.html" target="_blank">
3-
<img src="../pics/训练营.png" width="1000"/>
4-
</a>
5-
<p align="center"><strong><a href="./qita/join.md">参与本项目</a>,贡献其他语言版本的代码,拥抱开源,让更多学习算法的小伙伴们受益!</strong></p>
1+
* [做项目(多个C++、Java、Go、测开、前端项目)](https://www.programmercarl.com/other/kstar.html)
2+
* [刷算法(两个月高强度学算法)](https://www.programmercarl.com/xunlian/xunlianying.html)
3+
* [背八股(40天挑战高频面试题)](https://www.programmercarl.com/xunlian/bagu.html)
64

75

86
# 24. 两两交换链表中的节点
@@ -527,7 +525,3 @@ public ListNode SwapPairs(ListNode head)
527525
}
528526
```
529527

530-
<p align="center">
531-
<a href="https://programmercarl.com/other/kstar.html" target="_blank">
532-
<img src="../pics/网站星球宣传海报.jpg" width="1000"/>
533-
</a>

problems/0027.移除元素.md

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
<p align="center">
2-
<a href="https://www.programmercarl.com/xunlian/xunlianying.html" target="_blank">
3-
<img src="../pics/训练营.png" width="1000"/>
4-
</a>
5-
<p align="center"><strong><a href="./qita/join.md">参与本项目</a>,贡献其他语言版本的代码,拥抱开源,让更多学习算法的小伙伴们受益!</strong></p>
1+
* [做项目(多个C++、Java、Go、测开、前端项目)](https://www.programmercarl.com/other/kstar.html)
2+
* [刷算法(两个月高强度学算法)](https://www.programmercarl.com/xunlian/xunlianying.html)
3+
* [背八股(40天挑战高频面试题)](https://www.programmercarl.com/xunlian/bagu.html)
64

75

86
# 27. 移除元素
@@ -519,7 +517,3 @@ int removeElement(List<int> nums, int val) {
519517
520518
```
521519

522-
<p align="center">
523-
<a href="https://programmercarl.com/other/kstar.html" target="_blank">
524-
<img src="../pics/网站星球宣传海报.jpg" width="1000"/>
525-
</a>

problems/0028.实现strStr.md

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
<p align="center">
2-
<a href="https://www.programmercarl.com/xunlian/xunlianying.html" target="_blank">
3-
<img src="../pics/训练营.png" width="1000"/>
4-
</a>
5-
<p align="center"><strong><a href="./qita/join.md">参与本项目</a>,贡献其他语言版本的代码,拥抱开源,让更多学习算法的小伙伴们受益!</strong></p>
1+
* [做项目(多个C++、Java、Go、测开、前端项目)](https://www.programmercarl.com/other/kstar.html)
2+
* [刷算法(两个月高强度学算法)](https://www.programmercarl.com/xunlian/xunlianying.html)
3+
* [背八股(40天挑战高频面试题)](https://www.programmercarl.com/xunlian/bagu.html)
64

75

86
> 在一个串中查找是否出现过另一个串,这是KMP的看家本领。
@@ -1520,7 +1518,3 @@ int strStr(char* haystack, char* needle) {
15201518
}
15211519
```
15221520
1523-
<p align="center">
1524-
<a href="https://programmercarl.com/other/kstar.html" target="_blank">
1525-
<img src="../pics/网站星球宣传海报.jpg" width="1000"/>
1526-
</a>

problems/0031.下一个排列.md

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
<p align="center">
2-
<a href="https://www.programmercarl.com/xunlian/xunlianying.html" target="_blank">
3-
<img src="../pics/训练营.png" width="1000"/>
4-
</a>
5-
<p align="center"><strong><a href="./qita/join.md">参与本项目</a>,贡献其他语言版本的代码,拥抱开源,让更多学习算法的小伙伴们受益!</strong></p>
1+
* [做项目(多个C++、Java、Go、测开、前端项目)](https://www.programmercarl.com/other/kstar.html)
2+
* [刷算法(两个月高强度学算法)](https://www.programmercarl.com/xunlian/xunlianying.html)
3+
* [背八股(40天挑战高频面试题)](https://www.programmercarl.com/xunlian/bagu.html)
64

75

86

@@ -269,7 +267,3 @@ var nextPermutation = function(nums) {
269267

270268

271269

272-
<p align="center">
273-
<a href="https://programmercarl.com/other/kstar.html" target="_blank">
274-
<img src="../pics/网站星球宣传海报.jpg" width="1000"/>
275-
</a>

problems/0034.在排序数组中查找元素的第一个和最后一个位置.md

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
<p align="center">
2-
<a href="https://www.programmercarl.com/xunlian/xunlianying.html" target="_blank">
3-
<img src="../pics/训练营.png" width="1000"/>
4-
</a>
5-
<p align="center"><strong><a href="./qita/join.md">参与本项目</a>,贡献其他语言版本的代码,拥抱开源,让更多学习算法的小伙伴们受益!</strong></p>
1+
* [做项目(多个C++、Java、Go、测开、前端项目)](https://www.programmercarl.com/other/kstar.html)
2+
* [刷算法(两个月高强度学算法)](https://www.programmercarl.com/xunlian/xunlianying.html)
3+
* [背八股(40天挑战高频面试题)](https://www.programmercarl.com/xunlian/bagu.html)
64

75

86
# 34. 在排序数组中查找元素的第一个和最后一个位置
@@ -855,7 +853,3 @@ int* searchRange(int* nums, int numsSize, int target, int* returnSize){
855853
```
856854
857855
858-
<p align="center">
859-
<a href="https://programmercarl.com/other/kstar.html" target="_blank">
860-
<img src="../pics/网站星球宣传海报.jpg" width="1000"/>
861-
</a>

0 commit comments

Comments
 (0)