Skip to content

Commit dfac57c

Browse files
authored
Update readme.md
1 parent 5e448d0 commit dfac57c

File tree

1 file changed

+8
-2
lines changed
  • src/main/java/g0101_0200/s0133_clone_graph

1 file changed

+8
-2
lines changed

src/main/java/g0101_0200/s0133_clone_graph/readme.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,13 @@ The given node will always be the first node with `val = 1`. You must return the
2626

2727
**Output:** [[2,4],[1,3],[2,4],[1,3]]
2828

29-
**Explanation:** There are 4 nodes in the graph. 1st node (val = 1)'s neighbors are 2nd node (val = 2) and 4th node (val = 4). 2nd node (val = 2)'s neighbors are 1st node (val = 1) and 3rd node (val = 3). 3rd node (val = 3)'s neighbors are 2nd node (val = 2) and 4th node (val = 4). 4th node (val = 4)'s neighbors are 1st node (val = 1) and 3rd node (val = 3).
29+
**Explanation:**
30+
31+
There are 4 nodes in the graph.
32+
1st node (val = 1)'s neighbors are 2nd node (val = 2) and 4th node (val = 4).
33+
2nd node (val = 2)'s neighbors are 1st node (val = 1) and 3rd node (val = 3).
34+
3rd node (val = 3)'s neighbors are 2nd node (val = 2) and 4th node (val = 4).
35+
4th node (val = 4)'s neighbors are 1st node (val = 1) and 3rd node (val = 3).
3036

3137
**Example 2:**
3238

@@ -52,4 +58,4 @@ The given node will always be the first node with `val = 1`. You must return the
5258
* `1 <= Node.val <= 100`
5359
* `Node.val` is unique for each node.
5460
* There are no repeated edges and no self-loops in the graph.
55-
* The Graph is connected and all nodes can be visited starting from the given node.
61+
* The Graph is connected and all nodes can be visited starting from the given node.

0 commit comments

Comments
 (0)