Skip to content

Commit 3cf1cf6

Browse files
committed
fix: Embed images to README
1 parent 3276fef commit 3cf1cf6

File tree

1 file changed

+8
-0
lines changed
  • linked-lists/intersection-of-two-linked-lists

1 file changed

+8
-0
lines changed

linked-lists/intersection-of-two-linked-lists/README.md

+8
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@ Write a program to find the node at which the intersection of two singly linked
1010

1111
For example, the following two linked lists:
1212

13+
![Example](./images/example-1.png)
14+
1315
### Example 1
1416

17+
![Example 1](./images/example-2.png)
18+
1519
```
1620
Input: intersectVal = 8, listA = [4,1,8,4,5], listB = [5,6,1,8,4,5], skipA = 2, skipB = 3
1721
Output: Reference of the node with value = 8
@@ -20,6 +24,8 @@ Input Explanation: The intersected node's value is 8 (note that this must not be
2024

2125
### Example 2
2226

27+
![Example 2](./images/example-3.png)
28+
2329
```
2430
Input: intersectVal = 2, listA = [1,9,1,2,4], listB = [3,2,4], skipA = 3, skipB = 1
2531
Output: Reference of the node with value = 2
@@ -28,6 +34,8 @@ Input Explanation: The intersected node's value is 2 (note that this must not be
2834

2935
### Example 3
3036

37+
![Example 3](./images/example-4.png)
38+
3139
```
3240
Input: intersectVal = 0, listA = [2,6,4], listB = [1,5], skipA = 3, skipB = 2
3341
Output: null

0 commit comments

Comments
 (0)