Skip to content

Commit afc12a7

Browse files
committed
add 287 427 1405
1 parent 003bbd2 commit afc12a7

22 files changed

+607
-23
lines changed

src/.vuepress/sidebar.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ export default sidebar({
267267
"0278",
268268
"0279",
269269
"0283",
270+
"0287",
270271
"0289",
271272
"0290",
272273
"0295",
@@ -313,6 +314,7 @@ export default sidebar({
313314
"0415",
314315
"0416",
315316
"0426",
317+
"0427",
316318
"0430",
317319
"0432",
318320
"0433",
@@ -459,6 +461,7 @@ export default sidebar({
459461
text: "1400-1499",
460462
collapsible: true,
461463
children: [
464+
"1405",
462465
"1419",
463466
"1441",
464467
"1472",

src/leetcode/algorithm/binary_search.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ function bsearch(arr, value) {
235235
| 题号 | 标题 | 题解 | 标签 | 难度 |
236236
| :------: | :------ | :------: | :------ | :------ |
237237
| 69 | [x 的平方根 ](https://leetcode.com/problems/sqrtx) | [[]](https://2xiao.github.io/leetcode-js/leetcode/problem/0069) | [`数学`](/leetcode/outline/tag/math.md) [`二分查找`](/leetcode/outline/tag/binary-search.md) | <font color=#15bd66>Easy</font> |
238-
| 287 | [寻找重复数](https://leetcode.com/problems/find-the-duplicate-number) | | [`位运算`](/leetcode/outline/tag/bit-manipulation.md) [`数组`](/leetcode/outline/tag/array.md) [`双指针`](/leetcode/outline/tag/two-pointers.md) `1+` | <font color=#ffb800>Medium</font> |
238+
| 287 | [寻找重复数](https://leetcode.com/problems/find-the-duplicate-number) | [[]](https://2xiao.github.io/leetcode-js/leetcode/problem/0287) | [`位运算`](/leetcode/outline/tag/bit-manipulation.md) [`数组`](/leetcode/outline/tag/array.md) [`双指针`](/leetcode/outline/tag/two-pointers.md) `1+` | <font color=#ffb800>Medium</font> |
239239
| 50 | [Pow(x, n)](https://leetcode.com/problems/powx-n) | [[]](https://2xiao.github.io/leetcode-js/leetcode/problem/0050) | [`递归`](/leetcode/outline/tag/recursion.md) [`数学`](/leetcode/outline/tag/math.md) | <font color=#ffb800>Medium</font> |
240240
| 367 | [有效的完全平方数](https://leetcode.com/problems/valid-perfect-square) | | [`数学`](/leetcode/outline/tag/math.md) [`二分查找`](/leetcode/outline/tag/binary-search.md) | <font color=#15bd66>Easy</font> |
241241
| 1300 | [转变数组后最接近目标值的数组和](https://leetcode.com/problems/sum-of-mutated-array-closest-to-target) | | [`数组`](/leetcode/outline/tag/array.md) [`二分查找`](/leetcode/outline/tag/binary-search.md) [`排序`](/leetcode/outline/tag/sorting.md) | <font color=#ffb800>Medium</font> |
@@ -254,7 +254,7 @@ function bsearch(arr, value) {
254254
| 702 | [搜索长度未知的有序数组](https://leetcode.com/problems/search-in-a-sorted-array-of-unknown-size) | | [`数组`](/leetcode/outline/tag/array.md) [`二分查找`](/leetcode/outline/tag/binary-search.md) [`交互`](/leetcode/outline/tag/interactive.md) | <font color=#ffb800>Medium</font> |
255255
| 349 | [两个数组的交集](https://leetcode.com/problems/intersection-of-two-arrays) | | [`数组`](/leetcode/outline/tag/array.md) [`哈希表`](/leetcode/outline/tag/hash-table.md) [`双指针`](/leetcode/outline/tag/two-pointers.md) `2+` | <font color=#15bd66>Easy</font> |
256256
| 350 | [两个数组的交集 II](https://leetcode.com/problems/intersection-of-two-arrays-ii) | | [`数组`](/leetcode/outline/tag/array.md) [`哈希表`](/leetcode/outline/tag/hash-table.md) [`双指针`](/leetcode/outline/tag/two-pointers.md) `2+` | <font color=#15bd66>Easy</font> |
257-
| 287 | [寻找重复数](https://leetcode.com/problems/find-the-duplicate-number) | | [`位运算`](/leetcode/outline/tag/bit-manipulation.md) [`数组`](/leetcode/outline/tag/array.md) [`双指针`](/leetcode/outline/tag/two-pointers.md) `1+` | <font color=#ffb800>Medium</font> |
257+
| 287 | [寻找重复数](https://leetcode.com/problems/find-the-duplicate-number) | [[]](https://2xiao.github.io/leetcode-js/leetcode/problem/0287) | [`位运算`](/leetcode/outline/tag/bit-manipulation.md) [`数组`](/leetcode/outline/tag/array.md) [`双指针`](/leetcode/outline/tag/two-pointers.md) `1+` | <font color=#ffb800>Medium</font> |
258258
| 719 | [找出第 K 小的数对距离](https://leetcode.com/problems/find-k-th-smallest-pair-distance) | | [`数组`](/leetcode/outline/tag/array.md) [`双指针`](/leetcode/outline/tag/two-pointers.md) [`二分查找`](/leetcode/outline/tag/binary-search.md) `1+` | <font color=#ff334b>Hard</font> |
259259
| 259 | [较小的三数之和](https://leetcode.com/problems/3sum-smaller) | [[]](https://2xiao.github.io/leetcode-js/leetcode/problem/0259) | [`数组`](/leetcode/outline/tag/array.md) [`双指针`](/leetcode/outline/tag/two-pointers.md) [`二分查找`](/leetcode/outline/tag/binary-search.md) `1+` | <font color=#ffb800>Medium</font> |
260260
| 1011 | [在 D 天内送达包裹的能力](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days) | | [`数组`](/leetcode/outline/tag/array.md) [`二分查找`](/leetcode/outline/tag/binary-search.md) | <font color=#ffb800>Medium</font> |

src/leetcode/outline/plan/codetop_list.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ headerDepth: 0
168168
| 347 | [前 K 个高频元素](https://leetcode.com/problems/top-k-frequent-elements) | [[]](https://2xiao.github.io/leetcode-js/leetcode/problem/0347) | [`数组`](/leetcode/outline/tag/array.md) [`哈希表`](/leetcode/outline/tag/hash-table.md) [`分治`](/leetcode/outline/tag/divide-and-conquer.md) `5+` | <font color=#ffb800>Medium</font> | 25 |
169169
| 106 | [从中序与后序遍历序列构造二叉树](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal) | [[]](https://2xiao.github.io/leetcode-js/leetcode/problem/0106) | [``](/leetcode/outline/tag/tree.md) [`数组`](/leetcode/outline/tag/array.md) [`哈希表`](/leetcode/outline/tag/hash-table.md) `2+` | <font color=#ffb800>Medium</font> | 25 |
170170
| 213 | [打家劫舍 II](https://leetcode.com/problems/house-robber-ii) | | [`数组`](/leetcode/outline/tag/array.md) [`动态规划`](/leetcode/outline/tag/dynamic-programming.md) | <font color=#ffb800>Medium</font> | 25 |
171-
| 287 | [寻找重复数](https://leetcode.com/problems/find-the-duplicate-number) | | [`位运算`](/leetcode/outline/tag/bit-manipulation.md) [`数组`](/leetcode/outline/tag/array.md) [`双指针`](/leetcode/outline/tag/two-pointers.md) `1+` | <font color=#ffb800>Medium</font> | 25 |
171+
| 287 | [寻找重复数](https://leetcode.com/problems/find-the-duplicate-number) | [[]](https://2xiao.github.io/leetcode-js/leetcode/problem/0287) | [`位运算`](/leetcode/outline/tag/bit-manipulation.md) [`数组`](/leetcode/outline/tag/array.md) [`双指针`](/leetcode/outline/tag/two-pointers.md) `1+` | <font color=#ffb800>Medium</font> | 25 |
172172
| 剑指 Offer 27 | [二叉树的镜像](https://leetcode.cn/problems/er-cha-shu-de-jing-xiang-lcof) | [[]](https://2xiao.github.io/leetcode-js/leetcode/problem/jz_offer_27_1) | [``](/leetcode/outline/tag/tree.md) [`深度优先搜索`](/leetcode/outline/tag/depth-first-search.md) [`广度优先搜索`](/leetcode/outline/tag/breadth-first-search.md) `1+` | <font color=#15bd66>Easy</font> | 25 |
173173
| 剑指 Offer 29 | [顺时针打印矩阵](https://leetcode.cn/problems/shun-shi-zhen-da-yin-ju-zhen-lcof) | [[]](https://2xiao.github.io/leetcode-js/leetcode/problem/jz_offer_29_1) | [`数组`](/leetcode/outline/tag/array.md) [`矩阵`](/leetcode/outline/tag/matrix.md) [`模拟`](/leetcode/outline/tag/simulation.md) | <font color=#15bd66>Easy</font> | 24 |
174174
| 96 | [不同的二叉搜索树](https://leetcode.com/problems/unique-binary-search-trees) | [[]](https://2xiao.github.io/leetcode-js/leetcode/problem/0096) | [``](/leetcode/outline/tag/tree.md) [`二叉搜索树`](/leetcode/outline/tag/binary-search-tree.md) [`数学`](/leetcode/outline/tag/math.md) `2+` | <font color=#ffb800>Medium</font> | 24 |

src/leetcode/outline/plan/top_200_list.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ headerDepth: 0
438438
| 题号 | 标题 | 题解 | 标签 | 难度 | 频次 |
439439
| :------: | :------ | :------: | :------ | :------ | :------: |
440440
| 69 | [x 的平方根 ](https://leetcode.com/problems/sqrtx) | [[]](https://2xiao.github.io/leetcode-js/leetcode/problem/0069) | [`数学`](/leetcode/outline/tag/math.md) [`二分查找`](/leetcode/outline/tag/binary-search.md) | <font color=#15bd66>Easy</font> | 109 |
441-
| 287 | [寻找重复数](https://leetcode.com/problems/find-the-duplicate-number) | | [`位运算`](/leetcode/outline/tag/bit-manipulation.md) [`数组`](/leetcode/outline/tag/array.md) [`双指针`](/leetcode/outline/tag/two-pointers.md) `1+` | <font color=#ffb800>Medium</font> | 25 |
441+
| 287 | [寻找重复数](https://leetcode.com/problems/find-the-duplicate-number) | [[]](https://2xiao.github.io/leetcode-js/leetcode/problem/0287) | [`位运算`](/leetcode/outline/tag/bit-manipulation.md) [`数组`](/leetcode/outline/tag/array.md) [`双指针`](/leetcode/outline/tag/two-pointers.md) `1+` | <font color=#ffb800>Medium</font> | 25 |
442442
| 50 | [Pow(x, n)](https://leetcode.com/problems/powx-n) | [[]](https://2xiao.github.io/leetcode-js/leetcode/problem/0050) | [`递归`](/leetcode/outline/tag/recursion.md) [`数学`](/leetcode/outline/tag/math.md) | <font color=#ffb800>Medium</font> | 37 |
443443
| 400 | [第 N 位数字](https://leetcode.com/problems/nth-digit) | | [`数学`](/leetcode/outline/tag/math.md) [`二分查找`](/leetcode/outline/tag/binary-search.md) | <font color=#ffb800>Medium</font> | 23 |
444444

src/leetcode/outline/plan/top_300_list.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ headerDepth: 0
261261
| 718 | [最长重复子数组](https://leetcode.com/problems/maximum-length-of-repeated-subarray) | | [`数组`](/leetcode/outline/tag/array.md) [`二分查找`](/leetcode/outline/tag/binary-search.md) [`动态规划`](/leetcode/outline/tag/dynamic-programming.md) `3+` | <font color=#ffb800>Medium</font> |
262262
| 50 | [Pow(x, n)](https://leetcode.com/problems/powx-n) | [[]](https://2xiao.github.io/leetcode-js/leetcode/problem/0050) | [`递归`](/leetcode/outline/tag/recursion.md) [`数学`](/leetcode/outline/tag/math.md) | <font color=#ffb800>Medium</font> |
263263
| 29 | [两数相除](https://leetcode.com/problems/divide-two-integers) | [[]](https://2xiao.github.io/leetcode-js/leetcode/problem/0029) | [`位运算`](/leetcode/outline/tag/bit-manipulation.md) [`数学`](/leetcode/outline/tag/math.md) | <font color=#ffb800>Medium</font> |
264-
| 287 | [寻找重复数](https://leetcode.com/problems/find-the-duplicate-number) | | [`位运算`](/leetcode/outline/tag/bit-manipulation.md) [`数组`](/leetcode/outline/tag/array.md) [`双指针`](/leetcode/outline/tag/two-pointers.md) `1+` | <font color=#ffb800>Medium</font> |
264+
| 287 | [寻找重复数](https://leetcode.com/problems/find-the-duplicate-number) | [[]](https://2xiao.github.io/leetcode-js/leetcode/problem/0287) | [`位运算`](/leetcode/outline/tag/bit-manipulation.md) [`数组`](/leetcode/outline/tag/array.md) [`双指针`](/leetcode/outline/tag/two-pointers.md) `1+` | <font color=#ffb800>Medium</font> |
265265
| 209 | [长度最小的子数组](https://leetcode.com/problems/minimum-size-subarray-sum) | [[]](https://2xiao.github.io/leetcode-js/leetcode/problem/0209) | [`数组`](/leetcode/outline/tag/array.md) [`二分查找`](/leetcode/outline/tag/binary-search.md) [`前缀和`](/leetcode/outline/tag/prefix-sum.md) `1+` | <font color=#ffb800>Medium</font> |
266266
| 153 | [寻找旋转排序数组中的最小值](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array) | [[]](https://2xiao.github.io/leetcode-js/leetcode/problem/0153) | [`数组`](/leetcode/outline/tag/array.md) [`二分查找`](/leetcode/outline/tag/binary-search.md) | <font color=#ffb800>Medium</font> |
267267
| 162 | [寻找峰值](https://leetcode.com/problems/find-peak-element) | [[]](https://2xiao.github.io/leetcode-js/leetcode/problem/0162) | [`数组`](/leetcode/outline/tag/array.md) [`二分查找`](/leetcode/outline/tag/binary-search.md) | <font color=#ffb800>Medium</font> |

src/leetcode/outline/solution_list.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# 1.3 LeetCode 题解
22

3-
已完成 402
3+
已完成 405
44

55
<!-- prettier-ignore -->
66
| 题号 | 标题 | 题解 | 标签 | 难度 |
@@ -204,6 +204,7 @@
204204
| 278 | [第一个错误的版本](https://leetcode.com/problems/first-bad-version) | [[]](https://2xiao.github.io/leetcode-js/leetcode/problem/0278) | [`二分查找`](/leetcode/outline/tag/binary-search.md) [`交互`](/leetcode/outline/tag/interactive.md) | <font color=#15bd66>Easy</font> |
205205
| 279 | [完全平方数](https://leetcode.com/problems/perfect-squares) | [[]](https://2xiao.github.io/leetcode-js/leetcode/problem/0279) | [`广度优先搜索`](/leetcode/outline/tag/breadth-first-search.md) [`数学`](/leetcode/outline/tag/math.md) [`动态规划`](/leetcode/outline/tag/dynamic-programming.md) | <font color=#ffb800>Medium</font> |
206206
| 283 | [移动零](https://leetcode.com/problems/move-zeroes) | [[]](https://2xiao.github.io/leetcode-js/leetcode/problem/0283) | [`数组`](/leetcode/outline/tag/array.md) [`双指针`](/leetcode/outline/tag/two-pointers.md) | <font color=#15bd66>Easy</font> |
207+
| 287 | [寻找重复数](https://leetcode.com/problems/find-the-duplicate-number) | [[]](https://2xiao.github.io/leetcode-js/leetcode/problem/0287) | [`位运算`](/leetcode/outline/tag/bit-manipulation.md) [`数组`](/leetcode/outline/tag/array.md) [`双指针`](/leetcode/outline/tag/two-pointers.md) `1+` | <font color=#ffb800>Medium</font> |
207208
| 289 | [生命游戏](https://leetcode.com/problems/game-of-life) | [[]](https://2xiao.github.io/leetcode-js/leetcode/problem/0289) | [`数组`](/leetcode/outline/tag/array.md) [`矩阵`](/leetcode/outline/tag/matrix.md) [`模拟`](/leetcode/outline/tag/simulation.md) | <font color=#ffb800>Medium</font> |
208209
| 290 | [单词规律](https://leetcode.com/problems/word-pattern) | [[]](https://2xiao.github.io/leetcode-js/leetcode/problem/0290) | [`哈希表`](/leetcode/outline/tag/hash-table.md) [`字符串`](/leetcode/outline/tag/string.md) | <font color=#15bd66>Easy</font> |
209210
| 295 | [数据流的中位数](https://leetcode.com/problems/find-median-from-data-stream) | [[]](https://2xiao.github.io/leetcode-js/leetcode/problem/0295) | [`设计`](/leetcode/outline/tag/design.md) [`双指针`](/leetcode/outline/tag/two-pointers.md) [`数据流`](/leetcode/outline/tag/data-stream.md) `2+` | <font color=#ff334b>Hard</font> |
@@ -238,6 +239,7 @@
238239
| 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> |
239240
| 416 | [分割等和子集](https://leetcode.com/problems/partition-equal-subset-sum) | [[]](https://2xiao.github.io/leetcode-js/leetcode/problem/0416) | [`数组`](/leetcode/outline/tag/array.md) [`动态规划`](/leetcode/outline/tag/dynamic-programming.md) | <font color=#ffb800>Medium</font> |
240241
| 426 | [将二叉搜索树转化为排序的双向链表](https://leetcode.com/problems/convert-binary-search-tree-to-sorted-doubly-linked-list) | [[]](https://2xiao.github.io/leetcode-js/leetcode/problem/0426) | [``](/leetcode/outline/tag/stack.md) [``](/leetcode/outline/tag/tree.md) [`深度优先搜索`](/leetcode/outline/tag/depth-first-search.md) `4+` | <font color=#ffb800>Medium</font> |
242+
| 427 | [建立四叉树](https://leetcode.com/problems/construct-quad-tree) | [[]](https://2xiao.github.io/leetcode-js/leetcode/problem/0427) | [``](/leetcode/outline/tag/tree.md) [`数组`](/leetcode/outline/tag/array.md) [`分治`](/leetcode/outline/tag/divide-and-conquer.md) `1+` | <font color=#ffb800>Medium</font> |
241243
| 430 | [扁平化多级双向链表](https://leetcode.com/problems/flatten-a-multilevel-doubly-linked-list) | [[]](https://2xiao.github.io/leetcode-js/leetcode/problem/0430) | [`深度优先搜索`](/leetcode/outline/tag/depth-first-search.md) [`链表`](/leetcode/outline/tag/linked-list.md) [`双向链表`](/leetcode/outline/tag/doubly-linked-list.md) | <font color=#ffb800>Medium</font> |
242244
| 432 | [全 O(1) 的数据结构](https://leetcode.com/problems/all-oone-data-structure) | [[]](https://2xiao.github.io/leetcode-js/leetcode/problem/0432) | [`设计`](/leetcode/outline/tag/design.md) [`哈希表`](/leetcode/outline/tag/hash-table.md) [`链表`](/leetcode/outline/tag/linked-list.md) `1+` | <font color=#ff334b>Hard</font> |
243245
| 433 | [最小基因变化](https://leetcode.com/problems/minimum-genetic-mutation) | [[]](https://2xiao.github.io/leetcode-js/leetcode/problem/0433) | [`广度优先搜索`](/leetcode/outline/tag/breadth-first-search.md) [`哈希表`](/leetcode/outline/tag/hash-table.md) [`字符串`](/leetcode/outline/tag/string.md) | <font color=#ffb800>Medium</font> |
@@ -324,6 +326,7 @@
324326
| 1312 | [让字符串成为回文串的最少插入次数](https://leetcode.com/problems/minimum-insertion-steps-to-make-a-string-palindrome) | [[]](https://2xiao.github.io/leetcode-js/leetcode/problem/1312) | [`字符串`](/leetcode/outline/tag/string.md) [`动态规划`](/leetcode/outline/tag/dynamic-programming.md) | <font color=#ff334b>Hard</font> |
325327
| 1331 | [数组序号转换](https://leetcode.com/problems/rank-transform-of-an-array) | [[]](https://2xiao.github.io/leetcode-js/leetcode/problem/1331) | [`数组`](/leetcode/outline/tag/array.md) [`哈希表`](/leetcode/outline/tag/hash-table.md) [`排序`](/leetcode/outline/tag/sorting.md) | <font color=#15bd66>Easy</font> |
326328
| 1381 | [设计一个支持增量操作的栈](https://leetcode.com/problems/design-a-stack-with-increment-operation) | [[]](https://2xiao.github.io/leetcode-js/leetcode/problem/1381) | [``](/leetcode/outline/tag/stack.md) [`设计`](/leetcode/outline/tag/design.md) [`数组`](/leetcode/outline/tag/array.md) | <font color=#ffb800>Medium</font> |
329+
| 1405 | [最长快乐字符串](https://leetcode.com/problems/longest-happy-string) | [[]](https://2xiao.github.io/leetcode-js/leetcode/problem/1405) | [`贪心`](/leetcode/outline/tag/greedy.md) [`字符串`](/leetcode/outline/tag/string.md) [`堆(优先队列)`](/leetcode/outline/tag/heap-priority-queue.md) | <font color=#ffb800>Medium</font> |
327330
| 1419 | [数青蛙](https://leetcode.com/problems/minimum-number-of-frogs-croaking) | [[]](https://2xiao.github.io/leetcode-js/leetcode/problem/1419) | [`字符串`](/leetcode/outline/tag/string.md) [`计数`](/leetcode/outline/tag/counting.md) | <font color=#ffb800>Medium</font> |
328331
| 1441 | [用栈操作构建数组](https://leetcode.com/problems/build-an-array-with-stack-operations) | [[]](https://2xiao.github.io/leetcode-js/leetcode/problem/1441) | [``](/leetcode/outline/tag/stack.md) [`数组`](/leetcode/outline/tag/array.md) [`模拟`](/leetcode/outline/tag/simulation.md) | <font color=#ffb800>Medium</font> |
329332
| 1472 | [设计浏览器历史记录](https://leetcode.com/problems/design-browser-history) | [[]](https://2xiao.github.io/leetcode-js/leetcode/problem/1472) | [``](/leetcode/outline/tag/stack.md) [`设计`](/leetcode/outline/tag/design.md) [`数组`](/leetcode/outline/tag/array.md) `3+` | <font color=#ffb800>Medium</font> |

0 commit comments

Comments
 (0)