File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
exercises/relative-distance Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 11# Instructions
22
33Your task is to determine the degree of separation between two individuals in a family tree.
4+ This is similar to the pop culture idea that everyone is [ within six degrees of Kevin Bacon] [ six-bacons ] .
45
56- You will be given an input, with all parent names and their children.
67- Each name is unique, a child _ can_ have one or two parents.
@@ -26,8 +27,8 @@ Given the following family tree:
2627└─────────┘ └────────┘
2728```
2829
29- The degree of separation between Tariq and Uma is 3 (Tariq → Helena → Isla → Uma).
30- There's no known relationship between Isla and [ Kevin] [ six-bacons ] , as there is no connection in the given data.
30+ The degree of separation between Tariq and Uma is 2 (Tariq → Isla → Uma).
31+ There's no known relationship between Isla and Kevin, as there is no connection in the given data.
3132The degree of separation between Uma and Isla is 1.
3233
3334~~~~ exercism/note
You can’t perform that action at this time.
0 commit comments