Challenge 4: Trace the Complete Path of a Journey
Explore how to implement a function that reconstructs the full travel path from unordered city pairs using hash tables in C#. Learn to design an algorithm leveraging the Dictionary class to trace the journey efficiently from start to end.
We'll cover the following...
We'll cover the following...
Problem statement
You have to implement the tracePath(Dictionary<string, string> map) function, which will take in an array of source-destination pairs and return the correct sequence of the whole journey from the ...