Skip to content

Commit c03ca39

Browse files
authored
feat: add weekly contest 504 (#5238)
1 parent e084e78 commit c03ca39

40 files changed

Lines changed: 1369 additions & 5 deletions

File tree

solution/0300-0399/0315.Count of Smaller Numbers After Self/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ func merge(arr []Pair, low, mid, high int) {
614614

615615
当右侧元素全部清空,其体现右侧所有元素均小于剩余左侧元素,累加右侧数组长度到每个剩余左侧元素的计数即可。
616616

617-
__注意__:C++做超大数组的归并排序时,有内存爆炸风险,需使用 __缓存数组__ 避免Memory Limit Exceeded。
617+
**注意**:C++做超大数组的归并排序时,有内存爆炸风险,需使用 **缓存数组** 避免Memory Limit Exceeded。
618618

619619
#### 复杂度:
620620

@@ -682,7 +682,6 @@ class Solution:
682682
return self.combine_arrays(left_nums_indices, right_nums_indices)
683683
```
684684

685-
686685
#### C++
687686

688687
```cpp

solution/0300-0399/0315.Count of Smaller Numbers After Self/README_EN.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,6 @@ class Solution:
663663
return self.combine_arrays(left_nums_indices, right_nums_indices)
664664
```
665665

666-
667666
#### C++
668667

669668
```cpp

solution/2700-2799/2736.Maximum Sum Queries/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,7 @@ function maximumSumQueries(nums1: number[], nums2: number[], queries: number[][]
422422
#### 复杂度解析
423423

424424
$n$ 是数组 $nums1$ 的长度,$m$ 是数组 $queries$ 的长度。
425+
425426
- 时间复杂度:$O((n + m) \times \log n + m \times \log m)$。
426427
- 空间复杂度:$O(n + m)$。
427428

solution/3900-3999/3936.Minimum Swaps to Move Zeros to End/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
comments: true
33
difficulty: 简单
44
edit_url: https://github.com/doocs/leetcode/edit/main/solution/3900-3999/3936.Minimum%20Swaps%20to%20Move%20Zeros%20to%20End/README.md
5+
rating: 1346
6+
source: 第 183 场双周赛 Q1
57
---
68

79
<!-- problem:start -->

solution/3900-3999/3936.Minimum Swaps to Move Zeros to End/README_EN.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
comments: true
33
difficulty: Easy
44
edit_url: https://github.com/doocs/leetcode/edit/main/solution/3900-3999/3936.Minimum%20Swaps%20to%20Move%20Zeros%20to%20End/README_EN.md
5+
rating: 1346
6+
source: Biweekly Contest 183 Q1
57
---
68

79
<!-- problem:start -->

solution/3900-3999/3937.Minimum Operations to Make Array Modulo Alternating I/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
comments: true
33
difficulty: 中等
44
edit_url: https://github.com/doocs/leetcode/edit/main/solution/3900-3999/3937.Minimum%20Operations%20to%20Make%20Array%20Modulo%20Alternating%20I/README.md
5+
rating: 1626
6+
source: 第 183 场双周赛 Q2
57
---
68

79
<!-- problem:start -->

solution/3900-3999/3937.Minimum Operations to Make Array Modulo Alternating I/README_EN.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
comments: true
33
difficulty: Medium
44
edit_url: https://github.com/doocs/leetcode/edit/main/solution/3900-3999/3937.Minimum%20Operations%20to%20Make%20Array%20Modulo%20Alternating%20I/README_EN.md
5+
rating: 1626
6+
source: Biweekly Contest 183 Q2
57
---
68

79
<!-- problem:start -->

solution/3900-3999/3938.Maximum Path Intersection Sum in a Grid/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
comments: true
33
difficulty: 中等
44
edit_url: https://github.com/doocs/leetcode/edit/main/solution/3900-3999/3938.Maximum%20Path%20Intersection%20Sum%20in%20a%20Grid/README.md
5+
rating: 2251
6+
source: 第 183 场双周赛 Q3
57
---
68

79
<!-- problem:start -->

solution/3900-3999/3938.Maximum Path Intersection Sum in a Grid/README_EN.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
comments: true
33
difficulty: Medium
44
edit_url: https://github.com/doocs/leetcode/edit/main/solution/3900-3999/3938.Maximum%20Path%20Intersection%20Sum%20in%20a%20Grid/README_EN.md
5+
rating: 2251
6+
source: Biweekly Contest 183 Q3
57
---
68

79
<!-- problem:start -->

solution/3900-3999/3939.Count Non Adjacent Subsets in a Rooted Tree/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
comments: true
33
difficulty: 困难
44
edit_url: https://github.com/doocs/leetcode/edit/main/solution/3900-3999/3939.Count%20Non%20Adjacent%20Subsets%20in%20a%20Rooted%20Tree/README.md
5+
rating: 2354
6+
source: 第 183 场双周赛 Q4
57
---
68

79
<!-- problem:start -->

0 commit comments

Comments
 (0)