Skip to content

Commit d246039

Browse files
committed
add 25 solutions
1 parent 96483f5 commit d246039

Some content is hidden

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

52 files changed

+3942
-98
lines changed

src/.vuepress/sidebar.ts

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,33 +551,56 @@ export default sidebar({
551551
"1013",
552552
"1018",
553553
"1021",
554+
"1022",
555+
"1025",
556+
"1030",
557+
"1037",
558+
"1046",
554559
"1047",
555560
"1049",
561+
"1051",
556562
"1068",
557563
"1071",
558564
"1072",
559-
"1081"
565+
"1078",
566+
"1081",
567+
"1089"
560568
]
561569
},
562570
{
563571
"text": "1100-1199",
564572
"collapsible": true,
565573
"children": [
574+
"1103",
566575
"1106",
576+
"1108",
577+
"1122",
578+
"1128",
567579
"1137",
568580
"1143",
569581
"1146",
570582
"1148",
583+
"1154",
584+
"1160",
571585
"1161",
586+
"1175",
587+
"1184",
588+
"1185",
589+
"1189",
572590
"1190"
573591
]
574592
},
575593
{
576594
"text": "1200-1299",
577595
"collapsible": true,
578596
"children": [
597+
"1200",
579598
"1207",
599+
"1217",
600+
"1221",
601+
"1232",
580602
"1233",
603+
"1252",
581604
"1268",
582605
"1277",
583606
"1288"
@@ -709,6 +732,7 @@ export default sidebar({
709732
"2261",
710733
"2262",
711734
"2275",
735+
"2287",
712736
"2290"
713737
]
714738
},
@@ -847,6 +871,7 @@ export default sidebar({
847871
"2822",
848872
"2823",
849873
"2825",
874+
"2872",
850875
"2877",
851876
"2878",
852877
"2879",

src/book/greedy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
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) |
3535
| 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) |
36-
| 1217 | 玩筹码 | | [`贪心`](/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) |
36+
| 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) |
3939
| 921 | 使括号有效的最少添加 | [[]](/problem/0921.md) | [``](/tag/stack.md) [`贪心`](/tag/greedy.md) [`字符串`](/tag/string.md) | 🟠 | [🀄️](https://leetcode.cn/problems/minimum-add-to-make-parentheses-valid) [🔗](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid) |

src/book/sort.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ function swap(arr, i, j) {
401401
| 题号 | 标题 | 题解 | 标签 | 难度 | 力扣 |
402402
| :------: | :------ | :------: | :------ | :------: | :------: |
403403
| 912 | 排序数组 | | [`数组`](/tag/array.md) [`分治`](/tag/divide-and-conquer.md) [`桶排序`](/tag/bucket-sort.md) `5+` | 🟠 | [🀄️](https://leetcode.cn/problems/sort-an-array) [🔗](https://leetcode.com/problems/sort-an-array) |
404-
| 1122 | 数组的相对排序 | | [`数组`](/tag/array.md) [`哈希表`](/tag/hash-table.md) [`计数排序`](/tag/counting-sort.md) `1+` | 🟢 | [🀄️](https://leetcode.cn/problems/relative-sort-array) [🔗](https://leetcode.com/problems/relative-sort-array) |
404+
| 1122 | 数组的相对排序 | [[]](/problem/1122.md) | [`数组`](/tag/array.md) [`哈希表`](/tag/hash-table.md) [`计数排序`](/tag/counting-sort.md) `1+` | 🟢 | [🀄️](https://leetcode.cn/problems/relative-sort-array) [🔗](https://leetcode.com/problems/relative-sort-array) |
405405

406406
* 桶排序
407407

0 commit comments

Comments
 (0)