File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed
exercises/relative-distance Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -13,20 +13,22 @@ Your task is to determine the degree of separation between two individuals in a
1313Given the following family tree:
1414
1515``` text
16- ┌──────────┐ ┌──────────┐ ┌──────────┐
17- │ Helena │ │ Helena │ │ Umar │
18- └───┬───┬──┘ └─────┬────┘ └─────┬────┘
19- ┌───┘ └───────┐ └──────┬─────┘
16+ ┌──────────┐ ┌──────────┐ ┌─────────── ┐
17+ │ Helena │ │ Helena │ │ Shusaku │
18+ └───┬───┬──┘ └─────┬────┘ └────── ┬────┘
19+ ┌───┘ └───────┐ └──────┬────── ┘
2020 ▼ ▼ ▼
2121┌──────────┐ ┌────────┐ ┌──────────┐
22- │ Isla │ │ Tariq │ │ Kaito │
22+ │ Isla │ │ Tariq │ │ Kevin │
2323└────┬─────┘ └────┬───┘ └──────────┘
2424 ▼ ▼
25- ┌─────────┐ ┌ ───────┐
26- │ Uma │ │ Aditi │
27- └─────────┘ └ ───────┘
25+ ┌─────────┐ ┌─ ───────┐
26+ │ Uma │ │ Morphy │
27+ └─────────┘ └─ ───────┘
2828```
2929
3030The degree of separation between Tariq and Uma is 3 (Tariq → Helena → Isla → Uma).
31- The degree of separation between Isla and Kaito is not defined, as there is no visible relationship in the given data.
31+ The degree of separation between Isla and [ Kevin ] [ six-bacons ] is not defined, as there is no visible relationship in the given data.
3232The degree of separation between Uma and Isla is 1.
33+
34+ [ 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