Skip to content

Commit

Permalink
migrate: leetcode-cn.com -> leetcode.cn
Browse files Browse the repository at this point in the history
  • Loading branch information
binacs committed Jul 14, 2024
1 parent 49620ab commit 0f23159
Show file tree
Hide file tree
Showing 106 changed files with 878 additions and 878 deletions.
16 changes: 8 additions & 8 deletions basic/basic-sort.md
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ inline void radix_sort(unsigned A[], int len)
### 快排 partitiong
> [!NOTE] **[LeetCode 215. 数组中的第K个最大元素](https://leetcode-cn.com/problems/kth-largest-element-in-an-array/)**
> [!NOTE] **[LeetCode 215. 数组中的第K个最大元素](https://leetcode.cn/problems/kth-largest-element-in-an-array/)**
>
> 题意: TODO
Expand Down Expand Up @@ -582,7 +582,7 @@ class Solution:

### 三路排序

> [!NOTE] **[SwordOffer 21. 调整数组顺序使奇数位于偶数前面](https://leetcode-cn.com/problems/diao-zheng-shu-zu-shun-xu-shi-qi-shu-wei-yu-ou-shu-qian-mian-lcof/)**
> [!NOTE] **[SwordOffer 21. 调整数组顺序使奇数位于偶数前面](https://leetcode.cn/problems/diao-zheng-shu-zu-shun-xu-shi-qi-shu-wei-yu-ou-shu-qian-mian-lcof/)**
>
> 题意: TODO
Expand Down Expand Up @@ -641,7 +641,7 @@ class Solution(object):

* * *

> [!NOTE] **[LeetCode 75. 颜色分类](https://leetcode-cn.com/problems/sort-colors/)**
> [!NOTE] **[LeetCode 75. 颜色分类](https://leetcode.cn/problems/sort-colors/)**
>
> 题意: TODO

Expand Down Expand Up @@ -718,7 +718,7 @@ class Solution:

* * *

> [!NOTE] **[LeetCode 324. 摆动排序 II](https://leetcode-cn.com/problems/wiggle-sort-ii/)**
> [!NOTE] **[LeetCode 324. 摆动排序 II](https://leetcode.cn/problems/wiggle-sort-ii/)**
>
> 题意: 非常 trick

Expand Down Expand Up @@ -988,7 +988,7 @@ int main() {

* * *

> [!NOTE] **[LeetCode 493. 翻转对](https://leetcode-cn.com/problems/reverse-pairs/)**
> [!NOTE] **[LeetCode 493. 翻转对](https://leetcode.cn/problems/reverse-pairs/)**
>
> 题意: TODO

Expand Down Expand Up @@ -1046,7 +1046,7 @@ public:

* * *

> [!NOTE] **[LeetCode 1850. 邻位交换的最小次数](https://leetcode-cn.com/problems/minimum-adjacent-swaps-to-reach-the-kth-smallest-number/)** [TAG]
> [!NOTE] **[LeetCode 1850. 邻位交换的最小次数](https://leetcode.cn/problems/minimum-adjacent-swaps-to-reach-the-kth-smallest-number/)** [TAG]
>
> 题意: TODO
Expand Down Expand Up @@ -1104,7 +1104,7 @@ public:

* * *

> [!NOTE] **[LeetCode 2193. 得到回文串的最少操作次数](https://leetcode-cn.com/problems/minimum-number-of-moves-to-make-palindrome/)** [TAG]
> [!NOTE] **[LeetCode 2193. 得到回文串的最少操作次数](https://leetcode.cn/problems/minimum-number-of-moves-to-make-palindrome/)** [TAG]
>
> 题意: TODO

Expand Down Expand Up @@ -1267,7 +1267,7 @@ public:

### 桶排序

> [!NOTE] **[LeetCode 164. 最大间距](https://leetcode-cn.com/problems/maximum-gap/)**
> [!NOTE] **[LeetCode 164. 最大间距](https://leetcode.cn/problems/maximum-gap/)**
>
> 题意: TODO

Expand Down
2 changes: 1 addition & 1 deletion basic/binary-lifting.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ int main() {

* * *

> [!NOTE] **[LeetCode 1483. 树节点的第 K 个祖先](https://leetcode-cn.com/problems/kth-ancestor-of-a-tree-node/)**
> [!NOTE] **[LeetCode 1483. 树节点的第 K 个祖先](https://leetcode.cn/problems/kth-ancestor-of-a-tree-node/)**
>
> 题意: TODO
Expand Down
54 changes: 27 additions & 27 deletions basic/binary.md
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ public:

* * *

> [!NOTE] **[LeetCode 4. 寻找两个正序数组的中位数](https://leetcode-cn.com/problems/median-of-two-sorted-arrays/)**
> [!NOTE] **[LeetCode 4. 寻找两个正序数组的中位数](https://leetcode.cn/problems/median-of-two-sorted-arrays/)**
>
> 题意: TODO

Expand Down Expand Up @@ -525,7 +525,7 @@ class Solution:

* * *

> [!NOTE] **[LeetCode 34. 在排序数组中查找元素的第一个和最后一个位置](https://leetcode-cn.com/problems/find-first-and-last-position-of-element-in-sorted-array/)**
> [!NOTE] **[LeetCode 34. 在排序数组中查找元素的第一个和最后一个位置](https://leetcode.cn/problems/find-first-and-last-position-of-element-in-sorted-array/)**
>
> 题意: TODO
Expand Down Expand Up @@ -599,7 +599,7 @@ class Solution:

* * *

> [!NOTE] **[LeetCode 162. 寻找峰值](https://leetcode-cn.com/problems/find-peak-element/)**
> [!NOTE] **[LeetCode 162. 寻找峰值](https://leetcode.cn/problems/find-peak-element/)**
>
> 题意: TODO

Expand Down Expand Up @@ -733,7 +733,7 @@ public:

* * *

> [!NOTE] **[LeetCode 274. H 指数](https://leetcode-cn.com/problems/h-index/)**
> [!NOTE] **[LeetCode 274. H 指数](https://leetcode.cn/problems/h-index/)**
>
> 题意: TODO
Expand Down Expand Up @@ -801,7 +801,7 @@ class Solution:

* * *

> [!NOTE] **[LeetCode 275. H 指数 II](https://leetcode-cn.com/problems/h-index-ii/)**
> [!NOTE] **[LeetCode 275. H 指数 II](https://leetcode.cn/problems/h-index-ii/)**
>
> 题意: TODO
Expand Down Expand Up @@ -858,7 +858,7 @@ class Solution:

* * *

> [!NOTE] **[LeetCode 540. 有序数组中的单一元素](https://leetcode-cn.com/problems/single-element-in-a-sorted-array/)**
> [!NOTE] **[LeetCode 540. 有序数组中的单一元素](https://leetcode.cn/problems/single-element-in-a-sorted-array/)**
>
> 题意: TODO

Expand Down Expand Up @@ -907,7 +907,7 @@ public:

* * *

> [!NOTE] **[LeetCode 1818 绝对差值和](https://leetcode-cn.com/problems/minimum-absolute-sum-difference/)**
> [!NOTE] **[LeetCode 1818 绝对差值和](https://leetcode.cn/problems/minimum-absolute-sum-difference/)**
>
> 题意: TODO
Expand Down Expand Up @@ -966,7 +966,7 @@ public:

* * *

> [!NOTE] **[LeetCode 2080. 区间内查询数字的频率](https://leetcode-cn.com/problems/range-frequency-queries/)**
> [!NOTE] **[LeetCode 2080. 区间内查询数字的频率](https://leetcode.cn/problems/range-frequency-queries/)**
>
> 题意: TODO

Expand Down Expand Up @@ -1070,7 +1070,7 @@ public:

### 二分答案

> [!NOTE] **[LeetCode 410. 分割数组的最大值](https://leetcode-cn.com/problems/split-array-largest-sum/)**
> [!NOTE] **[LeetCode 410. 分割数组的最大值](https://leetcode.cn/problems/split-array-largest-sum/)**
>
> 题意: TODO

Expand Down Expand Up @@ -1192,7 +1192,7 @@ public:

* * *

> [!NOTE] **[LeetCode 475. 供暖器](https://leetcode-cn.com/problems/heaters/)**
> [!NOTE] **[LeetCode 475. 供暖器](https://leetcode.cn/problems/heaters/)**
>
> 题意: TODO

Expand Down Expand Up @@ -1260,7 +1260,7 @@ public:

* * *

> [!NOTE] **[LeetCode 778. 水位上升的泳池中游泳](https://leetcode-cn.com/problems/swim-in-rising-water/)**
> [!NOTE] **[LeetCode 778. 水位上升的泳池中游泳](https://leetcode.cn/problems/swim-in-rising-water/)**
>
> 题意: TODO

Expand Down Expand Up @@ -1326,7 +1326,7 @@ public:

* * *

> [!NOTE] **[LeetCode 793. 阶乘函数后 K 个零](https://leetcode-cn.com/problems/preimage-size-of-factorial-zeroes-function/)**
> [!NOTE] **[LeetCode 793. 阶乘函数后 K 个零](https://leetcode.cn/problems/preimage-size-of-factorial-zeroes-function/)**
>
> 题意: TODO
Expand Down Expand Up @@ -1386,7 +1386,7 @@ public:

* * *

> [!NOTE] **[LeetCode 1292. 元素和小于等于阈值的正方形的最大边长](https://leetcode-cn.com/problems/maximum-side-length-of-a-square-with-sum-less-than-or-equal-to-threshold/)**
> [!NOTE] **[LeetCode 1292. 元素和小于等于阈值的正方形的最大边长](https://leetcode.cn/problems/maximum-side-length-of-a-square-with-sum-less-than-or-equal-to-threshold/)**
>
> 题意: TODO
Expand Down Expand Up @@ -1447,7 +1447,7 @@ public:

* * *

> [!NOTE] **[LeetCode 1300. 转变数组后最接近目标值的数组和](https://leetcode-cn.com/problems/sum-of-mutated-array-closest-to-target/)**
> [!NOTE] **[LeetCode 1300. 转变数组后最接近目标值的数组和](https://leetcode.cn/problems/sum-of-mutated-array-closest-to-target/)**
>
> 题意: TODO

Expand Down Expand Up @@ -1515,7 +1515,7 @@ public:

* * *

> [!NOTE] **[LeetCode 1552. 两球之间的磁力](https://leetcode-cn.com/problems/magnetic-force-between-two-balls/)**
> [!NOTE] **[LeetCode 1552. 两球之间的磁力](https://leetcode.cn/problems/magnetic-force-between-two-balls/)**
>
> 题意: TODO

Expand Down Expand Up @@ -1577,7 +1577,7 @@ public:

* * *

> [!NOTE] **[LeetCode 1648. 销售价值减少的颜色球](https://leetcode-cn.com/problems/sell-diminishing-valued-colored-balls/)** [TAG]
> [!NOTE] **[LeetCode 1648. 销售价值减少的颜色球](https://leetcode.cn/problems/sell-diminishing-valued-colored-balls/)** [TAG]
>
> 题意: TODO

Expand Down Expand Up @@ -1696,7 +1696,7 @@ public:
>
> 题意:
>
> 同 [LeetCode 1648. 销售价值减少的颜色球](https://leetcode-cn.com/problems/sell-diminishing-valued-colored-balls/) 稍作修改
> 同 [LeetCode 1648. 销售价值减少的颜色球](https://leetcode.cn/problems/sell-diminishing-valued-colored-balls/) 稍作修改

> [!TIP] **思路**
>
Expand Down Expand Up @@ -1814,7 +1814,7 @@ public:

* * *

> [!NOTE] **[LeetCode 1870. 准时到达的列车最小时速](https://leetcode-cn.com/problems/minimum-speed-to-arrive-on-time/)**
> [!NOTE] **[LeetCode 1870. 准时到达的列车最小时速](https://leetcode.cn/problems/minimum-speed-to-arrive-on-time/)**
>
> 题意: TODO

Expand Down Expand Up @@ -2862,7 +2862,7 @@ public:

### 二分套二分

> [!NOTE] **[LeetCode 2040. 两个有序数组的第 K 小乘积](https://leetcode-cn.com/problems/kth-smallest-product-of-two-sorted-arrays/)** [TAG]
> [!NOTE] **[LeetCode 2040. 两个有序数组的第 K 小乘积](https://leetcode.cn/problems/kth-smallest-product-of-two-sorted-arrays/)** [TAG]
>
> 题意: TODO
Expand Down Expand Up @@ -3077,7 +3077,7 @@ int main() {

* * *

> [!NOTE] **[LeetCode 1515. 服务中心的最佳位置](https://leetcode-cn.com/problems/best-position-for-a-service-centre/)** [TAG]
> [!NOTE] **[LeetCode 1515. 服务中心的最佳位置](https://leetcode.cn/problems/best-position-for-a-service-centre/)** [TAG]
>
> 题意: POJ2420 原题

Expand Down Expand Up @@ -3154,7 +3154,7 @@ public:
>
> `[l, r]` 而非 `[l, r)` 并且注意和右侧比较(such as `nums[mid] < nums[r]`
> [!NOTE] **[LeetCode 153. 寻找旋转排序数组中的最小值](https://leetcode-cn.com/problems/find-minimum-in-rotated-sorted-array/)**
> [!NOTE] **[LeetCode 153. 寻找旋转排序数组中的最小值](https://leetcode.cn/problems/find-minimum-in-rotated-sorted-array/)**
>
> 题意: TODO
Expand Down Expand Up @@ -3212,7 +3212,7 @@ class Solution:

* * *

> [!NOTE] **[LeetCode 154. 寻找旋转排序数组中的最小值 II](https://leetcode-cn.com/problems/find-minimum-in-rotated-sorted-array-ii/)**
> [!NOTE] **[LeetCode 154. 寻找旋转排序数组中的最小值 II](https://leetcode.cn/problems/find-minimum-in-rotated-sorted-array-ii/)**
>
> 题意: TODO

Expand Down Expand Up @@ -3270,7 +3270,7 @@ class Solution:

* * *

> [!NOTE] **[LeetCode 33. 搜索旋转排序数组](https://leetcode-cn.com/problems/search-in-rotated-sorted-array/)**
> [!NOTE] **[LeetCode 33. 搜索旋转排序数组](https://leetcode.cn/problems/search-in-rotated-sorted-array/)**
>
> 题意: TODO

Expand Down Expand Up @@ -3323,7 +3323,7 @@ public:

* * *

> [!NOTE] **[LeetCode 81. 搜索旋转排序数组 II](https://leetcode-cn.com/problems/search-in-rotated-sorted-array-ii/)**
> [!NOTE] **[LeetCode 81. 搜索旋转排序数组 II](https://leetcode.cn/problems/search-in-rotated-sorted-array-ii/)**
>
> 题意: TODO

Expand Down Expand Up @@ -3379,7 +3379,7 @@ public:

### 抽象二分思想

> [!NOTE] **[LeetCode 74. 搜索二维矩阵](https://leetcode-cn.com/problems/search-a-2d-matrix/)**
> [!NOTE] **[LeetCode 74. 搜索二维矩阵](https://leetcode.cn/problems/search-a-2d-matrix/)**
>
> 题意: TODO

Expand Down Expand Up @@ -3451,7 +3451,7 @@ class Solution:

* * *

> [!NOTE] **[LeetCode 240. 搜索二维矩阵 II](https://leetcode-cn.com/problems/search-a-2d-matrix-ii/)**
> [!NOTE] **[LeetCode 240. 搜索二维矩阵 II](https://leetcode.cn/problems/search-a-2d-matrix-ii/)**
>
> 题意: TODO
Expand Down Expand Up @@ -3507,7 +3507,7 @@ class Solution:

* * *

> [!NOTE] **[LeetCode 378. 有序矩阵中第K小的元素](https://leetcode-cn.com/problems/kth-smallest-element-in-a-sorted-matrix/)**
> [!NOTE] **[LeetCode 378. 有序矩阵中第K小的元素](https://leetcode.cn/problems/kth-smallest-element-in-a-sorted-matrix/)**
>
> 题意: TODO

Expand Down
10 changes: 5 additions & 5 deletions basic/construction.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@

### 待细分

> [!NOTE] **[LeetCode 667. 优美的排列 II](https://leetcode-cn.com/problems/beautiful-arrangement-ii/)**
> [!NOTE] **[LeetCode 667. 优美的排列 II](https://leetcode.cn/problems/beautiful-arrangement-ii/)**
>
> 题意: TODO
Expand Down Expand Up @@ -158,7 +158,7 @@ public:

* * *

> [!NOTE] **[LeetCode 1253. 重构 2 行二进制矩阵](https://leetcode-cn.com/problems/reconstruct-a-2-row-binary-matrix/)**
> [!NOTE] **[LeetCode 1253. 重构 2 行二进制矩阵](https://leetcode.cn/problems/reconstruct-a-2-row-binary-matrix/)**
>
> 题意: TODO

Expand Down Expand Up @@ -222,7 +222,7 @@ public:

* * *

> [!NOTE] **[LeetCode 1968. 构造元素不等于两相邻元素平均值的数组](https://leetcode-cn.com/problems/array-with-elements-not-equal-to-average-of-neighbors/)**
> [!NOTE] **[LeetCode 1968. 构造元素不等于两相邻元素平均值的数组](https://leetcode.cn/problems/array-with-elements-not-equal-to-average-of-neighbors/)**
>
> 题意: TODO
Expand Down Expand Up @@ -1635,7 +1635,7 @@ public:

* * *

> [!NOTE] **[LeetCode 2081. k 镜像数字的和](https://leetcode-cn.com/problems/sum-of-k-mirror-numbers/)** [TAG]
> [!NOTE] **[LeetCode 2081. k 镜像数字的和](https://leetcode.cn/problems/sum-of-k-mirror-numbers/)** [TAG]
>
> 题意: TODO
Expand Down Expand Up @@ -1711,7 +1711,7 @@ public:

* * *

> [!NOTE] **[LeetCode 2217. 找到指定长度的回文数](https://leetcode-cn.com/problems/find-palindrome-with-fixed-length/)** [TAG]
> [!NOTE] **[LeetCode 2217. 找到指定长度的回文数](https://leetcode.cn/problems/find-palindrome-with-fixed-length/)** [TAG]
>
> 题意: TODO

Expand Down
6 changes: 3 additions & 3 deletions basic/divide-and-conquer.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ int main() {

* * *

> [!NOTE] **[LeetCode 454. 四数相加 II](https://leetcode-cn.com/problems/4sum-ii/)**
> [!NOTE] **[LeetCode 454. 四数相加 II](https://leetcode.cn/problems/4sum-ii/)**
>
> 题意: TODO

Expand Down Expand Up @@ -293,7 +293,7 @@ class Solution:

* * *

> [!NOTE] **[LeetCode 779. 第K个语法符号](https://leetcode-cn.com/problems/k-th-symbol-in-grammar/)**
> [!NOTE] **[LeetCode 779. 第K个语法符号](https://leetcode.cn/problems/k-th-symbol-in-grammar/)**
>
> 题意: TODO

Expand Down Expand Up @@ -334,7 +334,7 @@ public:

* * *

> [!NOTE] **[LeetCode 1274. 矩形内船只的数目](https://leetcode-cn.com/problems/number-of-ships-in-a-rectangle/)** [TAG]
> [!NOTE] **[LeetCode 1274. 矩形内船只的数目](https://leetcode.cn/problems/number-of-ships-in-a-rectangle/)** [TAG]
>
> 题意: TODO

Expand Down
Loading

0 comments on commit 0f23159

Please sign in to comment.