Skip to content

Commit 65f3542

Browse files
authored
feat: update lc problems (#4593)
1 parent 2dcb224 commit 65f3542

File tree

24 files changed

+105
-29
lines changed

24 files changed

+105
-29
lines changed

solution/1900-1999/1948.Delete Duplicate Folders in System/README_EN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ folder named "b".
6868
<pre>
6969
<strong>Input:</strong> paths = [[&quot;a&quot;],[&quot;c&quot;],[&quot;a&quot;,&quot;b&quot;],[&quot;c&quot;,&quot;b&quot;],[&quot;a&quot;,&quot;b&quot;,&quot;x&quot;],[&quot;a&quot;,&quot;b&quot;,&quot;x&quot;,&quot;y&quot;],[&quot;w&quot;],[&quot;w&quot;,&quot;y&quot;]]
7070
<strong>Output:</strong> [[&quot;c&quot;],[&quot;c&quot;,&quot;b&quot;],[&quot;a&quot;],[&quot;a&quot;,&quot;b&quot;]]
71-
<strong>Explanation: </strong>The file structure is as shown.
71+
<strong>Explanation: </strong>The file structure is as shown.
7272
Folders &quot;/a/b/x&quot; and &quot;/w&quot; (and their subfolders) are marked for deletion because they both contain an empty folder named &quot;y&quot;.
7373
Note that folders &quot;/a&quot; and &quot;/c&quot; are identical after the deletion, but they are not deleted because they were not marked beforehand.
7474
</pre>

solution/3600-3699/3615.Longest Palindromic Path in Graph/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ tags:
77
-
88
- 字符串
99
- 动态规划
10+
- 状态压缩
1011
---
1112

1213
<!-- problem:start -->

solution/3600-3699/3615.Longest Palindromic Path in Graph/README_EN.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ tags:
77
- Graph
88
- String
99
- Dynamic Programming
10+
- Bitmask
1011
---
1112

1213
<!-- problem:start -->

solution/3600-3699/3616.Number of Student Replacements/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
comments: true
33
difficulty: 中等
44
edit_url: https://github.com/doocs/leetcode/edit/main/solution/3600-3699/3616.Number%20of%20Student%20Replacements/README.md
5+
tags:
6+
- 数组
7+
- 模拟
58
---
69

710
<!-- problem:start -->

solution/3600-3699/3616.Number of Student Replacements/README_EN.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
comments: true
33
difficulty: Medium
44
edit_url: https://github.com/doocs/leetcode/edit/main/solution/3600-3699/3616.Number%20of%20Student%20Replacements/README_EN.md
5+
tags:
6+
- Array
7+
- Simulation
58
---
69

710
<!-- problem:start -->

solution/3600-3699/3618.Split Array by Prime Indices/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
comments: true
33
difficulty: 中等
44
edit_url: https://github.com/doocs/leetcode/edit/main/solution/3600-3699/3618.Split%20Array%20by%20Prime%20Indices/README.md
5+
tags:
6+
- 数组
7+
- 数学
8+
- 数论
59
---
610

711
<!-- problem:start -->

solution/3600-3699/3618.Split Array by Prime Indices/README_EN.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
comments: true
33
difficulty: Medium
44
edit_url: https://github.com/doocs/leetcode/edit/main/solution/3600-3699/3618.Split%20Array%20by%20Prime%20Indices/README_EN.md
5+
tags:
6+
- Array
7+
- Math
8+
- Number Theory
59
---
610

711
<!-- problem:start -->
@@ -19,14 +23,12 @@ edit_url: https://github.com/doocs/leetcode/edit/main/solution/3600-3699/3618.Sp
1923
<p>Split <code>nums</code> into two arrays <code>A</code> and <code>B</code> using the following rule:</p>
2024

2125
<ul>
22-
<li>Elements at <strong>prime</strong> indices in <code>nums</code> must go into array <code>A</code>.</li>
26+
<li>Elements at <strong><span data-keyword="prime-number">prime</span></strong> indices in <code>nums</code> must go into array <code>A</code>.</li>
2327
<li>All other elements must go into array <code>B</code>.</li>
2428
</ul>
2529

2630
<p>Return the <strong>absolute</strong> difference between the sums of the two arrays: <code>|sum(A) - sum(B)|</code>.</p>
2731

28-
<p>A <strong>prime</strong> number is a natural number greater than 1 with only two factors, 1 and itself.</p>
29-
3032
<p><strong>Note:</strong> An empty array has a sum of 0.</p>
3133

3234
<p>&nbsp;</p>

solution/3600-3699/3619.Count Islands With Total Value Divisible by K/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
comments: true
33
difficulty: 中等
44
edit_url: https://github.com/doocs/leetcode/edit/main/solution/3600-3699/3619.Count%20Islands%20With%20Total%20Value%20Divisible%20by%20K/README.md
5+
tags:
6+
- 深度优先搜索
7+
- 广度优先搜索
8+
- 并查集
9+
- 数组
10+
- 矩阵
511
---
612

713
<!-- problem:start -->

solution/3600-3699/3619.Count Islands With Total Value Divisible by K/README_EN.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
comments: true
33
difficulty: Medium
44
edit_url: https://github.com/doocs/leetcode/edit/main/solution/3600-3699/3619.Count%20Islands%20With%20Total%20Value%20Divisible%20by%20K/README_EN.md
5+
tags:
6+
- Depth-First Search
7+
- Breadth-First Search
8+
- Union Find
9+
- Array
10+
- Matrix
511
---
612

713
<!-- problem:start -->

solution/3600-3699/3620.Network Recovery Pathways/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22
comments: true
33
difficulty: 困难
44
edit_url: https://github.com/doocs/leetcode/edit/main/solution/3600-3699/3620.Network%20Recovery%20Pathways/README.md
5+
tags:
6+
-
7+
- 拓扑排序
8+
- 数组
9+
- 二分查找
10+
- 动态规划
11+
- 最短路
12+
- 堆(优先队列)
513
---
614

715
<!-- problem:start -->

0 commit comments

Comments
 (0)