Skip to content

Commit 598e147

Browse files
committed
change similar to table
1 parent 45132d3 commit 598e147

File tree

2,367 files changed

+50846
-12993
lines changed

Some content is hidden

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

2,367 files changed

+50846
-12993
lines changed

assets/output/0001.md

Lines changed: 40 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -129,27 +129,43 @@ time complexity?
129129

130130
## 相关题目
131131

132-
:::: md-demo 相关题目
133-
- [15. 三数之和](./0015.md)
134-
- [18. 四数之和](./0018.md)
135-
- [167. 两数之和 II - 输入有序数组](./0167.md)
136-
- [170. 两数之和 III - 数据结构设计](https://leetcode.com/problems/two-sum-iii-data-structure-design)
137-
- [560. 和为 K 的子数组](https://leetcode.com/problems/subarray-sum-equals-k)
138-
- [653. 两数之和 IV - 输入二叉搜索树](https://leetcode.com/problems/two-sum-iv-input-is-a-bst)
139-
- [1099. 小于 K 的两数之和](https://leetcode.com/problems/two-sum-less-than-k)
140-
- [1679. K 和数对的最大数目](https://leetcode.com/problems/max-number-of-k-sum-pairs)
141-
- [1711. 大餐计数](https://leetcode.com/problems/count-good-meals)
142-
- [2006. 差的绝对值为 K 的数对数目](https://leetcode.com/problems/count-number-of-pairs-with-absolute-difference-k)
143-
- [2023. 连接后等于目标字符串的字符串对](https://leetcode.com/problems/number-of-pairs-of-strings-with-concatenation-equal-to-target)
144-
- [2200. 找出数组中的所有 K 近邻下标](https://leetcode.com/problems/find-all-k-distant-indices-in-an-array)
145-
- [2351. 第一个出现两次的字母](https://leetcode.com/problems/first-letter-to-appear-twice)
146-
- [2354. 优质数对的数目](https://leetcode.com/problems/number-of-excellent-pairs)
147-
- [2367. 等差三元组的数目](https://leetcode.com/problems/number-of-arithmetic-triplets)
148-
- [2374. 边积分最高的节点](https://leetcode.com/problems/node-with-highest-edge-score)
149-
- [2399. 检查相同字母间的距离](https://leetcode.com/problems/check-distances-between-same-letters)
150-
- [2395. 和相等的子数组](https://leetcode.com/problems/find-subarrays-with-equal-sum)
151-
- [2441. 与对应负数同时存在的最大正整数](https://leetcode.com/problems/largest-positive-integer-that-exists-with-its-negative)
152-
- [2465. 不同的平均值数目](https://leetcode.com/problems/number-of-distinct-averages)
153-
- [2824. 统计和小于目标的下标对数目](https://leetcode.com/problems/count-pairs-whose-sum-is-less-than-target)
154-
155-
::::
132+
| 题号 | 标题 | 题解 | 标签 | 难度 |
133+
| :------: | :------ | :------: | :------ | :------ |
134+
| 15 | [三数之和](https://leetcode.com/problems/3sum) | [[]](https://2xiao.github.io/leetcode-js/leetcode/problem/0015) | [`数组`](/leetcode/outline/tag/array.md) [`双指针`](/leetcode/outline/tag/two-pointers.md) [`排序`](/leetcode/outline/tag/sorting.md) | <font color=#ffb800>Medium</font> |
135+
| 18 | [四数之和](https://leetcode.com/problems/4sum) | [[]](https://2xiao.github.io/leetcode-js/leetcode/problem/0018) | [`数组`](/leetcode/outline/tag/array.md) [`双指针`](/leetcode/outline/tag/two-pointers.md) [`排序`](/leetcode/outline/tag/sorting.md) | <font color=#ffb800>Medium</font> |
136+
| 167 | [两数之和 II - 输入有序数组](https://leetcode.com/problems/two-sum-ii-input-array-is-sorted) | [[]](https://2xiao.github.io/leetcode-js/leetcode/problem/0167) | [`数组`](/leetcode/outline/tag/array.md) [`双指针`](/leetcode/outline/tag/two-pointers.md) [`二分查找`](/leetcode/outline/tag/binary-search.md) | <font color=#ffb800>Medium</font> |
137+
| 170 | [两数之和 III - 数据结构设计](https://leetcode.com/problems/two-sum-iii-data-structure-design) | | [`设计`](/leetcode/outline/tag/design.md) [`数组`](/leetcode/outline/tag/array.md) [`哈希表`](/leetcode/outline/tag/hash-table.md) `2+` | <font color=#15bd66>Easy</font> |
138+
| 560 | [和为 K 的子数组](https://leetcode.com/problems/subarray-sum-equals-k) | | [`数组`](/leetcode/outline/tag/array.md) [`哈希表`](/leetcode/outline/tag/hash-table.md) [`前缀和`](/leetcode/outline/tag/prefix-sum.md) | <font color=#ffb800>Medium</font> |
139+
| 653 | [两数之和 IV - 输入二叉搜索树](https://leetcode.com/problems/two-sum-iv-input-is-a-bst) | | [``](/leetcode/outline/tag/tree.md) [`深度优先搜索`](/leetcode/outline/tag/depth-first-search.md) [`广度优先搜索`](/leetcode/outline/tag/breadth-first-search.md) `4+` | <font color=#15bd66>Easy</font> |
140+
| 1099 | [小于 K 的两数之和](https://leetcode.com/problems/two-sum-less-than-k) | | [`数组`](/leetcode/outline/tag/array.md) [`双指针`](/leetcode/outline/tag/two-pointers.md) [`二分查找`](/leetcode/outline/tag/binary-search.md) `1+` | <font color=#15bd66>Easy</font> |
141+
| 1679 | [K 和数对的最大数目](https://leetcode.com/problems/max-number-of-k-sum-pairs) | | [`数组`](/leetcode/outline/tag/array.md) [`哈希表`](/leetcode/outline/tag/hash-table.md) [`双指针`](/leetcode/outline/tag/two-pointers.md) `1+` | <font color=#ffb800>Medium</font> |
142+
| 1711 | [大餐计数](https://leetcode.com/problems/count-good-meals) | | [`数组`](/leetcode/outline/tag/array.md) [`哈希表`](/leetcode/outline/tag/hash-table.md) | <font color=#ffb800>Medium</font> |
143+
| 2006 | [差的绝对值为 K 的数对数目](https://leetcode.com/problems/count-number-of-pairs-with-absolute-difference-k) | | [`数组`](/leetcode/outline/tag/array.md) [`哈希表`](/leetcode/outline/tag/hash-table.md) [`计数`](/leetcode/outline/tag/counting.md) | <font color=#15bd66>Easy</font> |
144+
| 2023 | [连接后等于目标字符串的字符串对](https://leetcode.com/problems/number-of-pairs-of-strings-with-concatenation-equal-to-target) | | [`数组`](/leetcode/outline/tag/array.md) [`哈希表`](/leetcode/outline/tag/hash-table.md) [`字符串`](/leetcode/outline/tag/string.md) `1+` | <font color=#ffb800>Medium</font> |
145+
| 2200 | [找出数组中的所有 K 近邻下标](https://leetcode.com/problems/find-all-k-distant-indices-in-an-array) | | [`数组`](/leetcode/outline/tag/array.md) [`双指针`](/leetcode/outline/tag/two-pointers.md) | <font color=#15bd66>Easy</font> |
146+
| 2351 | [第一个出现两次的字母](https://leetcode.com/problems/first-letter-to-appear-twice) | | [`位运算`](/leetcode/outline/tag/bit-manipulation.md) [`哈希表`](/leetcode/outline/tag/hash-table.md) [`字符串`](/leetcode/outline/tag/string.md) `1+` | <font color=#15bd66>Easy</font> |
147+
| 2354 | [优质数对的数目](https://leetcode.com/problems/number-of-excellent-pairs) | | [`位运算`](/leetcode/outline/tag/bit-manipulation.md) [`数组`](/leetcode/outline/tag/array.md) [`哈希表`](/leetcode/outline/tag/hash-table.md) `1+` | <font color=#ff334b>Hard</font> |
148+
| 2367 | [等差三元组的数目](https://leetcode.com/problems/number-of-arithmetic-triplets) | | [`数组`](/leetcode/outline/tag/array.md) [`哈希表`](/leetcode/outline/tag/hash-table.md) [`双指针`](/leetcode/outline/tag/two-pointers.md) `1+` | <font color=#15bd66>Easy</font> |
149+
| 2374 | [边积分最高的节点](https://leetcode.com/problems/node-with-highest-edge-score) | | [``](/leetcode/outline/tag/graph.md) [`哈希表`](/leetcode/outline/tag/hash-table.md) | <font color=#ffb800>Medium</font> |
150+
| 2395 | [和相等的子数组](https://leetcode.com/problems/find-subarrays-with-equal-sum) | | [`数组`](/leetcode/outline/tag/array.md) [`哈希表`](/leetcode/outline/tag/hash-table.md) | <font color=#15bd66>Easy</font> |
151+
| 2399 | [检查相同字母间的距离](https://leetcode.com/problems/check-distances-between-same-letters) | | [`数组`](/leetcode/outline/tag/array.md) [`哈希表`](/leetcode/outline/tag/hash-table.md) [`字符串`](/leetcode/outline/tag/string.md) | <font color=#15bd66>Easy</font> |
152+
| 2441 | [与对应负数同时存在的最大正整数](https://leetcode.com/problems/largest-positive-integer-that-exists-with-its-negative) | | [`数组`](/leetcode/outline/tag/array.md) [`哈希表`](/leetcode/outline/tag/hash-table.md) [`双指针`](/leetcode/outline/tag/two-pointers.md) `1+` | <font color=#15bd66>Easy</font> |
153+
| 2465 | [不同的平均值数目](https://leetcode.com/problems/number-of-distinct-averages) | | [`数组`](/leetcode/outline/tag/array.md) [`哈希表`](/leetcode/outline/tag/hash-table.md) [`双指针`](/leetcode/outline/tag/two-pointers.md) `1+` | <font color=#15bd66>Easy</font> |
154+
| 2824 | [统计和小于目标的下标对数目](https://leetcode.com/problems/count-pairs-whose-sum-is-less-than-target) | | [`数组`](/leetcode/outline/tag/array.md) [`双指针`](/leetcode/outline/tag/two-pointers.md) [`二分查找`](/leetcode/outline/tag/binary-search.md) `1+` | <font color=#15bd66>Easy</font> |
155+
156+
<style>
157+
.blue {
158+
background-color: #096dd9;
159+
padding: 0.25rem 0.5rem;
160+
margin: 0;
161+
font-size: 0.85em;
162+
border-radius: 3px;
163+
color: white;
164+
font-weight: 500;
165+
}
166+
table th:first-of-type { width: 10%; }
167+
table th:nth-of-type(2) { width: 35%; }
168+
table th:nth-of-type(3) { width: 10%; }
169+
table th:nth-of-type(4) { width: 35%; }
170+
table th:nth-of-type(5) { width: 10%; }
171+
</style>

assets/output/0002.md

Lines changed: 27 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -122,14 +122,30 @@ upload/uploads/2021/01/02/addtwonumber1.jpg)
122122

123123
## 相关题目
124124

125-
:::: md-demo 相关题目
126-
- [43. 字符串相乘](./0043.md)
127-
- [67. 二进制求和](./0067.md)
128-
- [371. 两整数之和](https://leetcode.com/problems/sum-of-two-integers)
129-
- [415. 字符串相加](./0415.md)
130-
- [445. 两数相加 II](./0445.md)
131-
- [989. 数组形式的整数加法](https://leetcode.com/problems/add-to-array-form-of-integer)
132-
- [1634. 求两个多项式链表的和](https://leetcode.com/problems/add-two-polynomials-represented-as-linked-lists)
133-
- [2816. 翻倍以链表形式表示的数字](https://leetcode.com/problems/double-a-number-represented-as-a-linked-list)
134-
135-
::::
125+
| 题号 | 标题 | 题解 | 标签 | 难度 |
126+
| :------: | :------ | :------: | :------ | :------ |
127+
| 43 | [字符串相乘](https://leetcode.com/problems/multiply-strings) | [[]](https://2xiao.github.io/leetcode-js/leetcode/problem/0043) | [`数学`](/leetcode/outline/tag/math.md) [`字符串`](/leetcode/outline/tag/string.md) [`模拟`](/leetcode/outline/tag/simulation.md) | <font color=#ffb800>Medium</font> |
128+
| 67 | [二进制求和](https://leetcode.com/problems/add-binary) | [[]](https://2xiao.github.io/leetcode-js/leetcode/problem/0067) | [`位运算`](/leetcode/outline/tag/bit-manipulation.md) [`数学`](/leetcode/outline/tag/math.md) [`字符串`](/leetcode/outline/tag/string.md) `1+` | <font color=#15bd66>Easy</font> |
129+
| 371 | [两整数之和](https://leetcode.com/problems/sum-of-two-integers) | | [`位运算`](/leetcode/outline/tag/bit-manipulation.md) [`数学`](/leetcode/outline/tag/math.md) | <font color=#ffb800>Medium</font> |
130+
| 415 | [字符串相加](https://leetcode.com/problems/add-strings) | [[]](https://2xiao.github.io/leetcode-js/leetcode/problem/0415) | [`数学`](/leetcode/outline/tag/math.md) [`字符串`](/leetcode/outline/tag/string.md) [`模拟`](/leetcode/outline/tag/simulation.md) | <font color=#15bd66>Easy</font> |
131+
| 445 | [两数相加 II](https://leetcode.com/problems/add-two-numbers-ii) | [[]](https://2xiao.github.io/leetcode-js/leetcode/problem/0445) | [``](/leetcode/outline/tag/stack.md) [`链表`](/leetcode/outline/tag/linked-list.md) [`数学`](/leetcode/outline/tag/math.md) | <font color=#ffb800>Medium</font> |
132+
| 989 | [数组形式的整数加法](https://leetcode.com/problems/add-to-array-form-of-integer) | | [`数组`](/leetcode/outline/tag/array.md) [`数学`](/leetcode/outline/tag/math.md) | <font color=#15bd66>Easy</font> |
133+
| 1634 | [求两个多项式链表的和](https://leetcode.com/problems/add-two-polynomials-represented-as-linked-lists) | | [`链表`](/leetcode/outline/tag/linked-list.md) [`数学`](/leetcode/outline/tag/math.md) [`双指针`](/leetcode/outline/tag/two-pointers.md) | <font color=#ffb800>Medium</font> |
134+
| 2816 | [翻倍以链表形式表示的数字](https://leetcode.com/problems/double-a-number-represented-as-a-linked-list) | | [``](/leetcode/outline/tag/stack.md) [`链表`](/leetcode/outline/tag/linked-list.md) [`数学`](/leetcode/outline/tag/math.md) | <font color=#ffb800>Medium</font> |
135+
136+
<style>
137+
.blue {
138+
background-color: #096dd9;
139+
padding: 0.25rem 0.5rem;
140+
margin: 0;
141+
font-size: 0.85em;
142+
border-radius: 3px;
143+
color: white;
144+
font-weight: 500;
145+
}
146+
table th:first-of-type { width: 10%; }
147+
table th:nth-of-type(2) { width: 35%; }
148+
table th:nth-of-type(3) { width: 10%; }
149+
table th:nth-of-type(4) { width: 35%; }
150+
table th:nth-of-type(5) { width: 10%; }
151+
</style>

assets/output/0003.md

Lines changed: 30 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -119,17 +119,33 @@ repeating characters.
119119

120120
## 相关题目
121121

122-
:::: md-demo 相关题目
123-
- [159. 至多包含两个不同字符的最长子串](https://leetcode.com/problems/longest-substring-with-at-most-two-distinct-characters)
124-
- [340. 至多包含 K 个不同字符的最长子串](https://leetcode.com/problems/longest-substring-with-at-most-k-distinct-characters)
125-
- [992. K 个不同整数的子数组](https://leetcode.com/problems/subarrays-with-k-different-integers)
126-
- [1695. 删除子数组的最大得分](https://leetcode.com/problems/maximum-erasure-value)
127-
- [2067. 等计数子串的数量](https://leetcode.com/problems/number-of-equal-count-substrings)
128-
- [2260. 必须拿起的最小连续卡牌数](./2260.md)
129-
- [2401. 最长优雅子数组](https://leetcode.com/problems/longest-nice-subarray)
130-
- [2405. 子字符串的最优划分](https://leetcode.com/problems/optimal-partition-of-string)
131-
- [2799. 统计完全子数组的数目](https://leetcode.com/problems/count-complete-subarrays-in-an-array)
132-
- [2982. 找出出现至少三次的最长特殊子字符串 II](https://leetcode.com/problems/find-longest-special-substring-that-occurs-thrice-ii)
133-
- [2981. 找出出现至少三次的最长特殊子字符串 I](https://leetcode.com/problems/find-longest-special-substring-that-occurs-thrice-i)
134-
135-
::::
122+
| 题号 | 标题 | 题解 | 标签 | 难度 |
123+
| :------: | :------ | :------: | :------ | :------ |
124+
| 159 | [至多包含两个不同字符的最长子串](https://leetcode.com/problems/longest-substring-with-at-most-two-distinct-characters) | | [`哈希表`](/leetcode/outline/tag/hash-table.md) [`字符串`](/leetcode/outline/tag/string.md) [`滑动窗口`](/leetcode/outline/tag/sliding-window.md) | <font color=#ffb800>Medium</font> |
125+
| 340 | [至多包含 K 个不同字符的最长子串](https://leetcode.com/problems/longest-substring-with-at-most-k-distinct-characters) | | [`哈希表`](/leetcode/outline/tag/hash-table.md) [`字符串`](/leetcode/outline/tag/string.md) [`滑动窗口`](/leetcode/outline/tag/sliding-window.md) | <font color=#ffb800>Medium</font> |
126+
| 992 | [K 个不同整数的子数组](https://leetcode.com/problems/subarrays-with-k-different-integers) | | [`数组`](/leetcode/outline/tag/array.md) [`哈希表`](/leetcode/outline/tag/hash-table.md) [`计数`](/leetcode/outline/tag/counting.md) `1+` | <font color=#ff334b>Hard</font> |
127+
| 1695 | [删除子数组的最大得分](https://leetcode.com/problems/maximum-erasure-value) | | [`数组`](/leetcode/outline/tag/array.md) [`哈希表`](/leetcode/outline/tag/hash-table.md) [`滑动窗口`](/leetcode/outline/tag/sliding-window.md) | <font color=#ffb800>Medium</font> |
128+
| 2067 | [等计数子串的数量](https://leetcode.com/problems/number-of-equal-count-substrings) | | [`字符串`](/leetcode/outline/tag/string.md) [`计数`](/leetcode/outline/tag/counting.md) [`前缀和`](/leetcode/outline/tag/prefix-sum.md) | <font color=#ffb800>Medium</font> |
129+
| 2260 | [必须拿起的最小连续卡牌数](https://leetcode.com/problems/minimum-consecutive-cards-to-pick-up) | [[]](https://2xiao.github.io/leetcode-js/leetcode/problem/2260) | [`数组`](/leetcode/outline/tag/array.md) [`哈希表`](/leetcode/outline/tag/hash-table.md) [`滑动窗口`](/leetcode/outline/tag/sliding-window.md) | <font color=#ffb800>Medium</font> |
130+
| 2401 | [最长优雅子数组](https://leetcode.com/problems/longest-nice-subarray) | | [`位运算`](/leetcode/outline/tag/bit-manipulation.md) [`数组`](/leetcode/outline/tag/array.md) [`滑动窗口`](/leetcode/outline/tag/sliding-window.md) | <font color=#ffb800>Medium</font> |
131+
| 2405 | [子字符串的最优划分](https://leetcode.com/problems/optimal-partition-of-string) | | [`贪心`](/leetcode/outline/tag/greedy.md) [`哈希表`](/leetcode/outline/tag/hash-table.md) [`字符串`](/leetcode/outline/tag/string.md) | <font color=#ffb800>Medium</font> |
132+
| 2799 | [统计完全子数组的数目](https://leetcode.com/problems/count-complete-subarrays-in-an-array) | | [`数组`](/leetcode/outline/tag/array.md) [`哈希表`](/leetcode/outline/tag/hash-table.md) [`滑动窗口`](/leetcode/outline/tag/sliding-window.md) | <font color=#ffb800>Medium</font> |
133+
| 2981 | [找出出现至少三次的最长特殊子字符串 I](https://leetcode.com/problems/find-longest-special-substring-that-occurs-thrice-i) | | [`哈希表`](/leetcode/outline/tag/hash-table.md) [`字符串`](/leetcode/outline/tag/string.md) [`二分查找`](/leetcode/outline/tag/binary-search.md) `2+` | <font color=#ffb800>Medium</font> |
134+
| 2982 | [找出出现至少三次的最长特殊子字符串 II](https://leetcode.com/problems/find-longest-special-substring-that-occurs-thrice-ii) | | [`哈希表`](/leetcode/outline/tag/hash-table.md) [`字符串`](/leetcode/outline/tag/string.md) [`二分查找`](/leetcode/outline/tag/binary-search.md) `2+` | <font color=#ffb800>Medium</font> |
135+
136+
<style>
137+
.blue {
138+
background-color: #096dd9;
139+
padding: 0.25rem 0.5rem;
140+
margin: 0;
141+
font-size: 0.85em;
142+
border-radius: 3px;
143+
color: white;
144+
font-weight: 500;
145+
}
146+
table th:first-of-type { width: 10%; }
147+
table th:nth-of-type(2) { width: 35%; }
148+
table th:nth-of-type(3) { width: 10%; }
149+
table th:nth-of-type(4) { width: 35%; }
150+
table th:nth-of-type(5) { width: 10%; }
151+
</style>

assets/output/0004.md

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,23 @@ The overall run time complexity should be `O(log (m+n))`.
105105

106106
## 相关题目
107107

108-
:::: md-demo 相关题目
109-
- [2387. 行排序矩阵的中位数](https://leetcode.com/problems/median-of-a-row-wise-sorted-matrix)
110-
111-
::::
108+
| 题号 | 标题 | 题解 | 标签 | 难度 |
109+
| :------: | :------ | :------: | :------ | :------ |
110+
| 2387 | [行排序矩阵的中位数](https://leetcode.com/problems/median-of-a-row-wise-sorted-matrix) | | [`数组`](/leetcode/outline/tag/array.md) [`二分查找`](/leetcode/outline/tag/binary-search.md) [`矩阵`](/leetcode/outline/tag/matrix.md) | <font color=#ffb800>Medium</font> |
111+
112+
<style>
113+
.blue {
114+
background-color: #096dd9;
115+
padding: 0.25rem 0.5rem;
116+
margin: 0;
117+
font-size: 0.85em;
118+
border-radius: 3px;
119+
color: white;
120+
font-weight: 500;
121+
}
122+
table th:first-of-type { width: 10%; }
123+
table th:nth-of-type(2) { width: 35%; }
124+
table th:nth-of-type(3) { width: 10%; }
125+
table th:nth-of-type(4) { width: 35%; }
126+
table th:nth-of-type(5) { width: 10%; }
127+
</style>

0 commit comments

Comments
 (0)