Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Problem:
- ```
- 1 is connected to 2.
- 1 is connected to 4.
- ```
- Question:
- ```
- What is the shortest path from 4 to 1?
- ```
- Answer:
- ```
- - 4 to 1
- ```
- Problem:
- ```
- 3 is connected to 2.
- 4 is connected to 3.
- ```
- Question:
- ```
- What is the shortest path from 2 to 4?
- ```
- Answer:
- ```
- - 2 to 3
- - 3 to 4
- ```
- Problem:
- ```
- 3 is connected to 2.
- 4 is connected to 3.
- 5 is connected to 6.
- ```
- Question:
- ```
- What is the shortest path from 2 to 6?
- ```
- Answer:
- ```
- There is no path from 2 to 6
- ```
- Problem:
- ```
- 1 is connected to 10.
- 14 is connected to 10.
- 12 is connected to 14.
- ```
- Question:
- ```
- What is the shortest path from 1 to 14?
- ```
- Answer:
- ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement