Solution: Trace the Complete Path of a Journey

Let’s solve the Trace the Complete Path of a Journey problem.

Statement

Given an array paths, where pathsipaths_i contains a pair of strings [sourcei,destinationi][source_i, destination_i] ...

Level up your interview prep. Join Educative to access 70+ hands-on prep courses.