Skip to content

Commit 5f8b364

Browse files
committed
add 49 solutions
1 parent 998ff1f commit 5f8b364

Some content is hidden

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

80 files changed

+4765
-130
lines changed

src/.vuepress/sidebar.ts

Lines changed: 52 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,7 @@ export default sidebar({
360360
"0507",
361361
"0509",
362362
"0514",
363+
"0515",
363364
"0516",
364365
"0518",
365366
"0520",
@@ -704,39 +705,86 @@ export default sidebar({
704705
"1556",
705706
"1560",
706707
"1566",
708+
"1572",
707709
"1574",
710+
"1576",
711+
"1582",
712+
"1588",
708713
"1590",
709-
"1593"
714+
"1592",
715+
"1593",
716+
"1598"
710717
]
711718
},
712719
{
713720
"text": "1600-1699",
714721
"collapsible": true,
715722
"children": [
723+
"1603",
724+
"1608",
725+
"1614",
726+
"1619",
727+
"1624",
728+
"1629",
729+
"1636",
730+
"1637",
731+
"1640",
732+
"1646",
716733
"1652",
734+
"1656",
717735
"1657",
736+
"1662",
718737
"1667",
738+
"1668",
719739
"1671",
740+
"1672",
741+
"1678",
720742
"1679",
721-
"1683"
743+
"1683",
744+
"1684",
745+
"1688",
746+
"1694"
722747
]
723748
},
724749
{
725750
"text": "1700-1799",
726751
"collapsible": true,
727752
"children": [
753+
"1700",
754+
"1704",
755+
"1710",
756+
"1716",
757+
"1720",
758+
"1725",
728759
"1732",
760+
"1736",
761+
"1742",
762+
"1748",
763+
"1752",
729764
"1757",
765+
"1758",
730766
"1760",
767+
"1763",
731768
"1768",
732-
"1792"
769+
"1773",
770+
"1779",
771+
"1784",
772+
"1790",
773+
"1791",
774+
"1792",
775+
"1796"
733776
]
734777
},
735778
{
736779
"text": "1800-1899",
737780
"collapsible": true,
738781
"children": [
782+
"1800",
783+
"1805",
784+
"1812",
739785
"1813",
786+
"1816",
787+
"1822",
740788
"1829",
741789
"1861",
742790
"1873"
@@ -977,6 +1025,7 @@ export default sidebar({
9771025
"text": "3200-3299",
9781026
"collapsible": true,
9791027
"children": [
1028+
"3203",
9801029
"3243",
9811030
"3264"
9821031
]

src/book/dynamic_programming.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@
310310
| 248 | 中心对称数 III 🔒 | | [`递归`](/tag/recursion.md) [`数组`](/tag/array.md) [`字符串`](/tag/string.md) | 🔴 | [🀄️](https://leetcode.cn/problems/strobogrammatic-number-iii) [🔗](https://leetcode.com/problems/strobogrammatic-number-iii) |
311311
| 1088 | 易混淆数 II 🔒 | | [`数学`](/tag/math.md) [`回溯`](/tag/backtracking.md) | 🔴 | [🀄️](https://leetcode.cn/problems/confusing-number-ii) [🔗](https://leetcode.com/problems/confusing-number-ii) |
312312
| 1067 | 范围内的数字计数 🔒 | | [`数学`](/tag/math.md) [`动态规划`](/tag/dynamic-programming.md) | 🔴 | [🀄️](https://leetcode.cn/problems/digit-count-in-range) [🔗](https://leetcode.com/problems/digit-count-in-range) |
313-
| 1742 | 盒子中小球的最大数量 | | [`哈希表`](/tag/hash-table.md) [`数学`](/tag/math.md) [`计数`](/tag/counting.md) | 🟢 | [🀄️](https://leetcode.cn/problems/maximum-number-of-balls-in-a-box) [🔗](https://leetcode.com/problems/maximum-number-of-balls-in-a-box) |
313+
| 1742 | 盒子中小球的最大数量 | [[]](/problem/1742.md) | [`哈希表`](/tag/hash-table.md) [`数学`](/tag/math.md) [`计数`](/tag/counting.md) | 🟢 | [🀄️](https://leetcode.cn/problems/maximum-number-of-balls-in-a-box) [🔗](https://leetcode.com/problems/maximum-number-of-balls-in-a-box) |
314314
| 面试题 17.06 | 2出现的次数 | | [`递归`](/tag/recursion.md) [`数学`](/tag/math.md) [`动态规划`](/tag/dynamic-programming.md) | 🔴 | [🀄️](https://leetcode.cn/problems/number-of-2s-in-range-lcci) |
315315

316316
#### 概率 DP

src/book/greedy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
| 392 | 判断子序列 | [[]](/problem/0392.md) | [`双指针`](/tag/two-pointers.md) [`字符串`](/tag/string.md) [`动态规划`](/tag/dynamic-programming.md) | 🟢 | [🀄️](https://leetcode.cn/problems/is-subsequence) [🔗](https://leetcode.com/problems/is-subsequence) |
3333
| 122 | 买卖股票的最佳时机 II | [[]](/problem/0122.md) | [`贪心`](/tag/greedy.md) [`数组`](/tag/array.md) [`动态规划`](/tag/dynamic-programming.md) | 🟠 | [🀄️](https://leetcode.cn/problems/best-time-to-buy-and-sell-stock-ii) [🔗](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii) |
3434
| 561 | 数组拆分 | [[]](/problem/0561.md) | [`贪心`](/tag/greedy.md) [`数组`](/tag/array.md) [`计数排序`](/tag/counting-sort.md) `1+` | 🟢 | [🀄️](https://leetcode.cn/problems/array-partition) [🔗](https://leetcode.com/problems/array-partition) |
35-
| 1710 | 卡车上的最大单元数 | | [`贪心`](/tag/greedy.md) [`数组`](/tag/array.md) [`排序`](/tag/sorting.md) | 🟢 | [🀄️](https://leetcode.cn/problems/maximum-units-on-a-truck) [🔗](https://leetcode.com/problems/maximum-units-on-a-truck) |
35+
| 1710 | 卡车上的最大单元数 | [[]](/problem/1710.md) | [`贪心`](/tag/greedy.md) [`数组`](/tag/array.md) [`排序`](/tag/sorting.md) | 🟢 | [🀄️](https://leetcode.cn/problems/maximum-units-on-a-truck) [🔗](https://leetcode.com/problems/maximum-units-on-a-truck) |
3636
| 1217 | 玩筹码 | [[]](/problem/1217.md) | [`贪心`](/tag/greedy.md) [`数组`](/tag/array.md) [`数学`](/tag/math.md) | 🟢 | [🀄️](https://leetcode.cn/problems/minimum-cost-to-move-chips-to-the-same-position) [🔗](https://leetcode.com/problems/minimum-cost-to-move-chips-to-the-same-position) |
3737
| 1247 | 交换字符使得字符串相同 | | [`贪心`](/tag/greedy.md) [`数学`](/tag/math.md) [`字符串`](/tag/string.md) | 🟠 | [🀄️](https://leetcode.cn/problems/minimum-swaps-to-make-strings-equal) [🔗](https://leetcode.com/problems/minimum-swaps-to-make-strings-equal) |
3838
| 1400 | 构造 K 个回文字符串 | | [`贪心`](/tag/greedy.md) [`哈希表`](/tag/hash-table.md) [`字符串`](/tag/string.md) `1+` | 🟠 | [🀄️](https://leetcode.cn/problems/construct-k-palindrome-strings) [🔗](https://leetcode.com/problems/construct-k-palindrome-strings) |

src/book/string.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ BF 算法的思想可以用一句话来概括:在主串中检查起始位置
9595
| 28 | 找出字符串中第一个匹配项的下标 | [[]](/problem/0028.md) | [`双指针`](/tag/two-pointers.md) [`字符串`](/tag/string.md) [`字符串匹配`](/tag/string-matching.md) | 🟢 | [🀄️](https://leetcode.cn/problems/find-the-index-of-the-first-occurrence-in-a-string) [🔗](https://leetcode.com/problems/find-the-index-of-the-first-occurrence-in-a-string) |
9696
| 459 | 重复的子字符串 | [[]](/problem/0459.md) | [`字符串`](/tag/string.md) [`字符串匹配`](/tag/string-matching.md) | 🟢 | [🀄️](https://leetcode.cn/problems/repeated-substring-pattern) [🔗](https://leetcode.com/problems/repeated-substring-pattern) |
9797
| 686 | 重复叠加字符串匹配 | | [`字符串`](/tag/string.md) [`字符串匹配`](/tag/string-matching.md) | 🟠 | [🀄️](https://leetcode.cn/problems/repeated-string-match) [🔗](https://leetcode.com/problems/repeated-string-match) |
98-
| 1668 | 最大重复子字符串 | | [`字符串`](/tag/string.md) [`动态规划`](/tag/dynamic-programming.md) [`字符串匹配`](/tag/string-matching.md) | 🟢 | [🀄️](https://leetcode.cn/problems/maximum-repeating-substring) [🔗](https://leetcode.com/problems/maximum-repeating-substring) |
98+
| 1668 | 最大重复子字符串 | [[]](/problem/1668.md) | [`字符串`](/tag/string.md) [`动态规划`](/tag/dynamic-programming.md) [`字符串匹配`](/tag/string-matching.md) | 🟢 | [🀄️](https://leetcode.cn/problems/maximum-repeating-substring) [🔗](https://leetcode.com/problems/maximum-repeating-substring) |
9999
| 796 | 旋转字符串 | [[]](/problem/0796.md) | [`字符串`](/tag/string.md) [`字符串匹配`](/tag/string-matching.md) | 🟢 | [🀄️](https://leetcode.cn/problems/rotate-string) [🔗](https://leetcode.com/problems/rotate-string) |
100100
| 1408 | 数组中的字符串匹配 | [[]](/problem/1408.md) | [`数组`](/tag/array.md) [`字符串`](/tag/string.md) [`字符串匹配`](/tag/string-matching.md) | 🟢 | [🀄️](https://leetcode.cn/problems/string-matching-in-an-array) [🔗](https://leetcode.com/problems/string-matching-in-an-array) |
101101
| 2156 | 查找给定哈希值的子串 | | [`字符串`](/tag/string.md) [`滑动窗口`](/tag/sliding-window.md) [`哈希函数`](/tag/hash-function.md) `1+` | 🔴 | [🀄️](https://leetcode.cn/problems/find-substring-with-given-hash-value) [🔗](https://leetcode.com/problems/find-substring-with-given-hash-value) |

0 commit comments

Comments
 (0)