Question 1:
Question 2:
Variation of https://leetcode.com/problems/evaluate-division
euro -> dollar = 0.42
yard -> meter = 0.898
You are given an input file of currency relations as it was shown above. You have Q number of queries, where each query has two inputs: from and to ("euro", "pound"). As a result for that query, you need to return its relation (coefficient) between those two nodes, if there is no such relation return -1.
NOTE: