Skip to content

Commit 5250358

Browse files
committed
feat: add weekly contest 489 and biweekly contest 176
1 parent 3791c47 commit 5250358

File tree

45 files changed

+2439
-7
lines changed

Some content is hidden

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

45 files changed

+2439
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
- [乘积小于 K 的子数组](/solution/0700-0799/0713.Subarray%20Product%20Less%20Than%20K/README.md) - `双指针`
5353
- [位 1 的个数](/solution/0100-0199/0191.Number%20of%201%20Bits/README.md) - `位运算``lowbit`
5454
- [合并区间](/solution/0000-0099/0056.Merge%20Intervals/README.md) - `区间合并`
55-
<!-- 排序算法、待补充 -->
55+
<!-- 排序算法、待补充 -->
5656

5757
### 2. 数据结构
5858

solution/0700-0799/0799.Champagne Tower/Solution.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ function champagneTower(poured: number, query_row: number, query_glass: number):
1212
}
1313
}
1414
return f[query_row][query_glass];
15-
}
15+
}

solution/0700-0799/0799.Champagne Tower/Solution2.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ function champagneTower(poured: number, query_row: number, query_glass: number):
1212
f = g;
1313
}
1414
return Math.min(1, f[query_glass]);
15-
}
15+
}

solution/1900-1999/1959.Minimum Total Space Wasted With K Resizing Operations/README_EN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ The total wasted space is (20 - 10) + (20 - 20) = 10.
4444
<strong>Input:</strong> nums = [10,20,30], k = 1
4545
<strong>Output:</strong> 10
4646
<strong>Explanation:</strong> size = [20,20,30].
47-
We can set the initial size to be 20 and resize to 30 at time 2.
47+
We can set the initial size to be 20 and resize to 30 at time 2.
4848
The total wasted space is (20 - 10) + (20 - 20) + (30 - 30) = 10.
4949
</pre>
5050

solution/2500-2599/2535.Difference Between Element Sum and Digit Sum of an Array/README_EN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ tags:
3636
<pre>
3737
<strong>Input:</strong> nums = [1,15,6,3]
3838
<strong>Output:</strong> 9
39-
<strong>Explanation:</strong>
39+
<strong>Explanation:</strong>
4040
The element sum of nums is 1 + 15 + 6 + 3 = 25.
4141
The digit sum of nums is 1 + 1 + 5 + 6 + 3 = 16.
4242
The absolute difference between the element sum and digit sum is |25 - 16| = 9.

solution/3800-3899/3833.Count Dominant Indices/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/3800-3899/3833.Count%20Dominant%20Indices/README.md
5+
rating: 1171
6+
source: 第 488 场周赛 Q1
57
---
68

79
<!-- problem:start -->

solution/3800-3899/3833.Count Dominant Indices/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/3800-3899/3833.Count%20Dominant%20Indices/README_EN.md
5+
rating: 1171
6+
source: Weekly Contest 488 Q1
57
---
68

79
<!-- problem:start -->

solution/3800-3899/3834.Merge Adjacent Equal Elements/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/3800-3899/3834.Merge%20Adjacent%20Equal%20Elements/README.md
5+
rating: 1428
6+
source: 第 488 场周赛 Q2
57
---
68

79
<!-- problem:start -->

solution/3800-3899/3834.Merge Adjacent Equal Elements/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/3800-3899/3834.Merge%20Adjacent%20Equal%20Elements/README_EN.md
5+
rating: 1428
6+
source: Weekly Contest 488 Q2
57
---
68

79
<!-- problem:start -->

solution/3800-3899/3835.Count Subarrays With Cost Less Than or Equal to K/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/3800-3899/3835.Count%20Subarrays%20With%20Cost%20Less%20Than%20or%20Equal%20to%20K/README.md
5+
rating: 1759
6+
source: 第 488 场周赛 Q3
57
---
68

79
<!-- problem:start -->

0 commit comments

Comments
 (0)