Skip to content

Commit 4c5c3ee

Browse files
committed
feat: add weekly contest 464
1 parent 42d4a22 commit 4c5c3ee

File tree

46 files changed

+1671
-16
lines changed

Some content is hidden

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

46 files changed

+1671
-16
lines changed

solution/1200-1299/1277.Count Square Submatrices with All Ones/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ tags:
3333
  [0,1,1,1]
3434
]
3535
<strong>输出:</strong>15
36-
<strong>解释:</strong>
36+
<strong>解释:</strong>
3737
边长为 1 的正方形有 <strong>10</strong> 个。
3838
边长为 2 的正方形有 <strong>4</strong> 个。
3939
边长为 3 的正方形有 <strong>1</strong> 个。
@@ -42,15 +42,15 @@ tags:
4242

4343
<p><strong>示例 2:</strong></p>
4444

45-
<pre><strong>输入:</strong>matrix =
45+
<pre><strong>输入:</strong>matrix =
4646
[
4747
[1,0,1],
4848
[1,1,0],
4949
[1,1,0]
5050
]
5151
<strong>输出:</strong>7
5252
<strong>解释:</strong>
53-
边长为 1 的正方形有 <strong>6</strong> 个。
53+
边长为 1 的正方形有 <strong>6</strong> 个。
5454
边长为 2 的正方形有 <strong>1</strong> 个。
5555
正方形的总数 = 6 + 1 = <strong>7</strong>.
5656
</pre>

solution/1200-1299/1277.Count Square Submatrices with All Ones/README_EN.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ tags:
3333
&nbsp; [0,1,1,1]
3434
]
3535
<strong>Output:</strong> 15
36-
<strong>Explanation:</strong>
36+
<strong>Explanation:</strong>
3737
There are <strong>10</strong> squares of side 1.
3838
There are <strong>4</strong> squares of side 2.
3939
There is <strong>1</strong> square of side 3.
@@ -43,16 +43,16 @@ Total number of squares = 10 + 4 + 1 = <strong>15</strong>.
4343
<p><strong class="example">Example 2:</strong></p>
4444

4545
<pre>
46-
<strong>Input:</strong> matrix =
46+
<strong>Input:</strong> matrix =
4747
[
4848
[1,0,1],
4949
[1,1,0],
5050
[1,1,0]
5151
]
5252
<strong>Output:</strong> 7
53-
<strong>Explanation:</strong>
54-
There are <b>6</b> squares of side 1.
55-
There is <strong>1</strong> square of side 2.
53+
<strong>Explanation:</strong>
54+
There are <b>6</b> squares of side 1.
55+
There is <strong>1</strong> square of side 2.
5656
Total number of squares = 6 + 1 = <b>7</b>.
5757
</pre>
5858

solution/1500-1599/1504.Count Submatrices With All Ones/README_EN.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ tags:
3030
<pre>
3131
<strong>Input:</strong> mat = [[1,0,1],[1,1,0],[1,1,0]]
3232
<strong>Output:</strong> 13
33-
<strong>Explanation:</strong>
33+
<strong>Explanation:</strong>
3434
There are 6 rectangles of side 1x1.
3535
There are 2 rectangles of side 1x2.
3636
There are 3 rectangles of side 2x1.
37-
There is 1 rectangle of side 2x2.
37+
There is 1 rectangle of side 2x2.
3838
There is 1 rectangle of side 3x1.
3939
Total number of rectangles = 6 + 2 + 3 + 1 + 1 = 13.
4040
</pre>
@@ -44,14 +44,14 @@ Total number of rectangles = 6 + 2 + 3 + 1 + 1 = 13.
4444
<pre>
4545
<strong>Input:</strong> mat = [[0,1,1,0],[0,1,1,1],[1,1,1,0]]
4646
<strong>Output:</strong> 24
47-
<strong>Explanation:</strong>
47+
<strong>Explanation:</strong>
4848
There are 8 rectangles of side 1x1.
4949
There are 5 rectangles of side 1x2.
50-
There are 2 rectangles of side 1x3.
50+
There are 2 rectangles of side 1x3.
5151
There are 4 rectangles of side 2x1.
52-
There are 2 rectangles of side 2x2.
53-
There are 2 rectangles of side 3x1.
54-
There is 1 rectangle of side 3x2.
52+
There are 2 rectangles of side 2x2.
53+
There are 2 rectangles of side 3x1.
54+
There is 1 rectangle of side 3x2.
5555
Total number of rectangles = 8 + 5 + 2 + 4 + 2 + 2 + 1 = 24.
5656
</pre>
5757

solution/3600-3699/3648.Minimum Sensors to Cover 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/3600-3699/3648.Minimum%20Sensors%20to%20Cover%20Grid/README.md
5+
rating: 1395
6+
source: 第 163 场双周赛 Q1
57
---
68

79
<!-- problem:start -->

solution/3600-3699/3648.Minimum Sensors to Cover 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/3600-3699/3648.Minimum%20Sensors%20to%20Cover%20Grid/README_EN.md
5+
rating: 1395
6+
source: Biweekly Contest 163 Q1
57
---
68

79
<!-- problem:start -->

solution/3600-3699/3649.Number of Perfect Pairs/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/3600-3699/3649.Number%20of%20Perfect%20Pairs/README.md
5+
rating: 1715
6+
source: 第 163 场双周赛 Q2
57
---
68

79
<!-- problem:start -->

solution/3600-3699/3649.Number of Perfect Pairs/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/3600-3699/3649.Number%20of%20Perfect%20Pairs/README_EN.md
5+
rating: 1715
6+
source: Biweekly Contest 163 Q2
57
---
68

79
<!-- problem:start -->

solution/3600-3699/3650.Minimum Cost Path with Edge Reversals/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/3600-3699/3650.Minimum%20Cost%20Path%20with%20Edge%20Reversals/README.md
5+
rating: 1853
6+
source: 第 163 场双周赛 Q3
57
---
68

79
<!-- problem:start -->

solution/3600-3699/3650.Minimum Cost Path with Edge Reversals/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/3600-3699/3650.Minimum%20Cost%20Path%20with%20Edge%20Reversals/README_EN.md
5+
rating: 1853
6+
source: Biweekly Contest 163 Q3
57
---
68

79
<!-- problem:start -->

solution/3600-3699/3651.Minimum Cost Path with Teleportations/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/3600-3699/3651.Minimum%20Cost%20Path%20with%20Teleportations/README.md
5+
rating: 2411
6+
source: 第 163 场双周赛 Q4
57
---
68

79
<!-- problem:start -->

0 commit comments

Comments
 (0)