Ad
  • Custom User Avatar

    All my solutions presume there were no circular routes. Is this correct?

    Here are 2 examples:
    1- [("NewYork", "Paris"),("Paris", "NewYork"),("NewYork", "Frankfurt")] returns "Paris, NewYork, Frankfurt".
    Should the actual result be "NewYork, Paris, NewYork, Frankfurt"?

    2- [("NewYork", "Paris"),("Paris", "London"),("London", "NewYork"),("NewYork", "Frankfurt")] returns "Paris, London, NewYork, Frankfurt".
    Should the actual result be "NewYork, Paris, London, NewYork, Frankfurt"?

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution