Skip to content

Commit c0cd0d7

Browse files
committed
update string
1 parent 730ca8a commit c0cd0d7

13 files changed

+2075
-1986
lines changed

db/codeforces.sqlite

0 Bytes
Binary file not shown.

db/leetcode.sqlite

20 KB
Binary file not shown.

images/leetcode_dp.svg

Lines changed: 4 additions & 0 deletions
Loading

images/leetcode_string.svg

Lines changed: 1943 additions & 1981 deletions
Loading

map/leetcode/leetcode-string.txt

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,16 @@
1010
1903 1935 1941 1945 5701 5713
1111

1212
[-中等题]
13-
3 5 6 8 12 17 22 43 49 71 91 93 151 165 227 316 385 443 468 522 537 539 553 556 583 609 647
13+
71 91 93 151 165 227 316 385 443 468 522 537 539 553 556 583 609 647
1414
678 686 722 767 791 809 816 831 833 842 848 856 890 916 966 1003 1016 1023 1081 1138 1156
1515
1169 1170 1177 1233 1234 1247 1249 1268 1297 1311 1324 1328 1347 1358 1371 1404 1410 1419
1616
1432 1433 1451 1452 1456 1461 1487 1513 1525 1529 1540 1541 1545 1573 1604 1616 1638 1653
1717
1737 1759 1781 1807 1813 1839 1849 1850 1904 1910 1915 1946 5714
1818

19+
[-模拟题]
20+
6 12 13 14 38 58 67 383 387 434 520
21+
68
22+
1923
[-Trie]
2024
1948(key=Trie star=5)
2125

@@ -32,6 +36,7 @@
3236
770
3337

3438
[-BFS&DFS]
39+
22(key=括号可能情况 star=5)
3540
126 1096(star=4) 1106(star=4)
3641

3742
[-滑动窗口]
@@ -43,17 +48,14 @@
4348

4449
[-字符串与数字]
4550
415(key=字符串相加)
51+
43(key=FFT大数乘法 star=5)
4652
65(key=带e字符串转浮点数)
4753

4854
[-字符串匹配]
4955
28(key=实现strStr函数)
5056
44(key=通配符匹配)
5157
214(key=KMP算法)
5258

53-
[-模拟题]
54-
13 14 38 58 67 383 387 434 520
55-
68
56-
5759
[-括号匹配]
5860
20(key=有效括号) 32(key=最长匹配)
5961
761(key=转换为括号)
@@ -68,6 +70,7 @@
6870
344 345
6971

7072
[-回文]
73+
5(key=回文子串 star=5)
7174
125 336(key=回文 star=5)
7275
680(key=删除字符回文)
7376
564(key=最近回文数字 star=5)
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/*
2+
* @lc app=leetcode.cn id=12 lang=cpp
3+
*
4+
* [12] 整数转罗马数字
5+
*/
6+
7+
// @lc code=start
8+
class Solution {
9+
public:
10+
string intToRoman(int num) {
11+
12+
}
13+
};
14+
// @lc code=end
15+
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/*
2+
* @lc app=leetcode.cn id=17 lang=cpp
3+
*
4+
* [17] 电话号码的字母组合
5+
*/
6+
7+
// @lc code=start
8+
class Solution {
9+
public:
10+
vector<string> letterCombinations(string digits) {
11+
12+
}
13+
};
14+
// @lc code=end
15+

user/leetcode/22.括号生成.cpp

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/*
2+
* @lc app=leetcode.cn id=22 lang=cpp
3+
*
4+
* [22] 括号生成
5+
*/
6+
7+
// @lc code=start
8+
class Solution {
9+
public:
10+
vector<string> generateParenthesis(int n) {
11+
12+
}
13+
};
14+
// @lc code=end
15+

user/leetcode/43.字符串相乘.cpp

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/*
2+
* @lc app=leetcode.cn id=43 lang=cpp
3+
*
4+
* [43] 字符串相乘
5+
*/
6+
7+
// @lc code=start
8+
class Solution {
9+
public:
10+
string multiply(string num1, string num2) {
11+
12+
}
13+
};
14+
// @lc code=end
15+
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/*
2+
* @lc app=leetcode.cn id=49 lang=cpp
3+
*
4+
* [49] 字母异位词分组
5+
*/
6+
7+
// @lc code=start
8+
class Solution {
9+
public:
10+
vector<vector<string>> groupAnagrams(vector<string>& strs) {
11+
12+
}
13+
};
14+
// @lc code=end
15+
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/*
2+
* @lc app=leetcode.cn id=5 lang=cpp
3+
*
4+
* [5] 最长回文子串
5+
*/
6+
7+
// @lc code=start
8+
class Solution {
9+
public:
10+
string longestPalindrome(string s) {
11+
12+
}
13+
};
14+
// @lc code=end
15+

user/leetcode/6.z-字形变换.cpp

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/*
2+
* @lc app=leetcode.cn id=6 lang=cpp
3+
*
4+
* [6] Z 字形变换
5+
*/
6+
7+
// @lc code=start
8+
class Solution {
9+
public:
10+
string convert(string s, int numRows) {
11+
12+
}
13+
};
14+
// @lc code=end
15+
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/*
2+
* @lc app=leetcode.cn id=8 lang=cpp
3+
*
4+
* [8] 字符串转换整数 (atoi)
5+
*/
6+
7+
// @lc code=start
8+
class Solution {
9+
public:
10+
int myAtoi(string s) {
11+
12+
}
13+
};
14+
// @lc code=end
15+

0 commit comments

Comments
 (0)