Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8cbc11d

Browse files
authored
Improved tasks 430, 3044, 3426
1 parent864df8b commit8cbc11d

File tree

3 files changed

+7
-7
lines changed
  • src/main/java
    • g0401_0500/s0430_flatten_a_multilevel_doubly_linked_list
    • g3001_3100/s3044_most_frequent_prime
    • g3401_3500/s3426_manhattan_distances_of_all_arrangements_of_pieces

3 files changed

+7
-7
lines changed

‎src/main/java/g0401_0500/s0430_flatten_a_multilevel_doubly_linked_list/readme.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@ Return _the_ `head` _of the flattened list. The nodes in the list must have **al
1010

1111
**Example 1:**
1212

13-
![](https://assets.leetcode.com/uploads/2021/11/09/flatten11.jpg)
13+
![](https://leetcode-images.github.io/g0401_0500/s0430_flatten_a_multilevel_doubly_linked_list/flatten11.jpg)
1414

1515
**Input:** head =[1,2,3,4,5,6,null,null,null,7,8,9,10,null,null,11,12]
1616

1717
**Output:**[1,2,3,7,8,11,12,9,10,4,5,6]
1818

19-
**Explanation:** The multilevel linked list in the input is shown. After flattening the multilevel linked list it becomes:![](https://assets.leetcode.com/uploads/2021/11/09/flatten12.jpg)
19+
**Explanation:** The multilevel linked list in the input is shown. After flattening the multilevel linked list it becomes:![](https://leetcode-images.github.io/g0401_0500/s0430_flatten_a_multilevel_doubly_linked_list/flatten12.jpg)
2020

2121
**Example 2:**
2222

23-
![](https://assets.leetcode.com/uploads/2021/11/09/flatten2.1jpg)
23+
![](https://leetcode-images.github.io/g0401_0500/s0430_flatten_a_multilevel_doubly_linked_list/flatten21.jpg)
2424

2525
**Input:** head =[1,2,null,3]
2626

@@ -31,7 +31,7 @@ Return _the_ `head` _of the flattened list. The nodes in the list must have **al
3131
The multilevel linked list in the input is shown.
3232
After flattening the multilevel linked list it becomes:
3333

34-
![](https://assets.leetcode.com/uploads/2021/11/24/list.jpg)
34+
![](https://leetcode-images.github.io/g0401_0500/s0430_flatten_a_multilevel_doubly_linked_list/list.jpg)
3535

3636
**Example 3:**
3737

‎src/main/java/g3001_3100/s3044_most_frequent_prime/readme.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Return _the most frequent prime number **greater** than_ `10` _out of all the nu
1414

1515
**Example 1:**
1616

17-
**![](https://assets.leetcode.com/uploads/2024/02/15/south)**
17+
**![](https://leetcode-images.github.io/g3001_3100/s3044_most_frequent_prime/south.png)**
1818

1919
**Input:** mat =[[1,1],[9,9],[1,1]]
2020

‎src/main/java/g3401_3500/s3426_manhattan_distances_of_all_arrangements_of_pieces/readme.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ The Manhattan Distance between two cells <code>(x<sub>i</sub>, y<sub>i</sub>)</c
2222

2323
The valid arrangements of pieces on the board are:
2424

25-
![](https://assets.leetcode.com/uploads/2024/12/25/4040example1.drawio)![](https://assets.leetcode.com/uploads/2024/12/25/untitled-diagramdrawio.png)
25+
![](https://leetcode-images.github.io/g3401_3500/s3426_manhattan_distances_of_all_arrangements_of_pieces/untitled-diagramdrawio.png)
2626

2727
* In the first 4 arrangements, the Manhattan distance between the two pieces is 1.
2828
* In the last 2 arrangements, the Manhattan distance between the two pieces is 2.
@@ -39,7 +39,7 @@ Thus, the total Manhattan distance across all valid arrangements is `1 + 1 + 1 +
3939

4040
The valid arrangements of pieces on the board are:
4141

42-
![](https://assets.leetcode.com/uploads/2024/12/25/4040example2drawio.png)
42+
![](https://leetcode-images.github.io/g3401_3500/s3426_manhattan_distances_of_all_arrangements_of_pieces/4040example2drawio.png)
4343

4444
* The first and last arrangements have a total Manhattan distance of`1 + 1 + 2 = 4`.
4545
* The middle two arrangements have a total Manhattan distance of`1 + 2 + 3 = 6`.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp