Search⌘ K

Challenge: Trace the Complete Path of a Journey

Explore how to trace the entire sequence of a journey given pairs of source and destination cities. Learn to implement efficient solutions using hashing concepts in C++ to reconstruct the correct path from the starting to the final city.

We'll cover the following...

Statement

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