Most similar path in the graph

Правка en1, от swordx, 2022-01-30 20:01:54

Hello Guys,

Could you share your thoughts on the following question:

Given an undirected graph with node values as string, and a path to follow, you have to find a path which is most similar to the input path.

For example, for the following graph:

Please note that the value in the input path could be completely different from any existing node.

Input Path: ["KPG", "DPS", "SIN", "AUH"]

Expected Output: ["KUL", "DPS", "CGK", "AUH"]

Input Path: ["XXX", "TBS", "DME"]

Expected Output: ["ATH", "TBS", "DME"]

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en4 Английский swordx 2022-01-30 22:08:52 49
en3 Английский swordx 2022-01-30 22:07:28 811
en2 Английский swordx 2022-01-30 21:59:51 275
en1 Английский swordx 2022-01-30 20:01:54 630 Initial revision (published)