File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
exercises/relative-distance Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 33Your task is to determine the degree of separation between two individuals in a family tree.
44
55- You will be given an input, with all parent names and their children.
6- - Each name is unique, a child _ can_ have one or more parents.
6+ - Each name is unique, a child _ can_ have one or two parents.
77- The degree of separation is defined as the shortest number of connections from one person to another.
88- If two individuals are not connected, return a value that represents "no relation."
99 Please see the test cases for the actual implementation.
@@ -28,7 +28,7 @@ Given the following family tree:
2828```
2929
3030The degree of separation between Tariq and Uma is 3 (Tariq → Helena → Isla → Uma).
31- The degree of separation between Isla and [ Kevin] [ six-bacons ] is not defined , as there is no visible relationship in the given data.
31+ There's no known relationship between Isla and [ Kevin] [ six-bacons ] , as there is no connection in the given data.
3232The degree of separation between Uma and Isla is 1.
3333
3434[ six-bacons ] : https://en.m.wikipedia.org/wiki/Six_Degrees_of_Kevin_Bacon
You can’t perform that action at this time.
0 commit comments