Skip to content

Commit 273cb16

Browse files
committed
Improved 3534
1 parent d8b3dea commit 273cb16

File tree

1 file changed

+11
-45
lines changed
  • src/main/java/g3501_3600/s3534_path_existence_queries_in_a_graph_ii

1 file changed

+11
-45
lines changed

src/main/java/g3501_3600/s3534_path_existence_queries_in_a_graph_ii/readme.md

+11-45
Original file line numberDiff line numberDiff line change
@@ -26,23 +26,10 @@ The resulting graph is:
2626

2727
![](https://assets.leetcode.com/uploads/2025/03/25/4149example1drawio.png)
2828

29-
Query
30-
31-
Shortest Path
32-
33-
Minimum Distance
34-
35-
[0, 3]
36-
37-
0 → 3
38-
39-
1
40-
41-
[2, 4]
42-
43-
2 → 4
44-
45-
1
29+
| Query | Shortest Path | Minimum Distance |
30+
|--------|----------------|------------------|
31+
| [0, 3] | 0 → 3 | 1 |
32+
| [2, 4] | 2 → 4 | 1 |
4633

4734
Thus, the output is `[1, 1]`.
4835

@@ -58,35 +45,14 @@ The resulting graph is:
5845

5946
![](https://assets.leetcode.com/uploads/2025/03/25/4149example2drawio.png)
6047

61-
Query
62-
63-
Shortest Path
64-
65-
Minimum Distance
66-
67-
[0, 1]
68-
69-
0 → 1
70-
71-
1
72-
73-
[0, 2]
74-
75-
0 → 1 → 2
76-
77-
2
78-
79-
[2, 3]
80-
81-
None
82-
83-
\-1
84-
85-
[4, 3]
86-
87-
3 → 4
48+
Here is the equivalent Markdown for the given HTML table:
8849

89-
1
50+
| Query | Shortest Path | Minimum Distance |
51+
|--------|----------------|------------------|
52+
| [0, 1] | 0 → 1 | 1 |
53+
| [0, 2] | 0 → 1 → 2 | 2 |
54+
| [2, 3] | None | -1 |
55+
| [4, 3] | 3 → 4 | 1 |
9056

9157
Thus, the output is `[1, 2, -1, 1]`.
9258

0 commit comments

Comments
 (0)