Skip to content

Commit bf68526

Browse files
committed
fix: relative distance
1 parent 1799950 commit bf68526

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

exercises/relative-distance/canonical-data.json

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
"personA": "Dimitri",
122122
"personB": "Fabio"
123123
},
124-
"expected": 4
124+
"expected": 9
125125
},
126126
{
127127
"uuid": "2cc2e76b-013a-433c-9486-1dbe29bf06e5",
@@ -185,25 +185,24 @@
185185
"personA": "Lucia",
186186
"personB": "Jun"
187187
},
188-
"expected": 15
188+
"expected": 14
189189
},
190190
{
191191
"uuid": "46c9fbcb-e464-455f-a718-049ea3c7400a",
192-
"description": "Complex graph, some shortcuts, cross-down and cross-up, cousins three times removed",
192+
"description": "Complex graph, some shortcuts, cross-down and cross-up, cousins several times removed, with unrealted family tree",
193193
"property": "degreeOfSeparation",
194194
"input": {
195195
"familyTree": {
196196
"Aiko": ["Bao", "Carlos"],
197-
"Bao": ["Dalia", "Elias"],
197+
"Bao": ["Dalia"],
198198
"Carlos": ["Fatima", "Gustavo"],
199199
"Dalia": ["Hassan", "Isla"],
200-
"Elias": ["Javier"],
201200
"Fatima": ["Khadija", "Liam"],
202201
"Gustavo": ["Mina"],
203202
"Hassan": ["Noah", "Olga"],
204203
"Isla": ["Pedro"],
205204
"Javier": ["Quynh", "Ravi"],
206-
"Khadija": ["Viktor"],
205+
"Khadija": ["Sofia"],
207206
"Liam": ["Tariq", "Uma"],
208207
"Mina": ["Viktor", "Wang"],
209208
"Noah": ["Xiomara"],
@@ -246,10 +245,10 @@
246245
"Yassin": ["Lucia"],
247246
"Zara": ["Mohammed"]
248247
},
249-
"personA": "Tomoko",
250-
"personB": "Qi"
248+
"personA": "Wyatt",
249+
"personB": "Xia"
251250
},
252-
"expected": 8
251+
"expected": 12
253252
}
254253
]
255254
}

0 commit comments

Comments
 (0)