@@ -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 >
0 commit comments