Solving Evaluate Division in go. Please try yourself first to solve the problem and submit your implementation to LeetCode before looking into solution.

Problem Description


According to the example above:

equations = [ ["a", "b"], ["b", "c"] ],
values = [2.0, 3.0],
queries = [ ["a", "c"], ["b", "a"], ["a", "e"], ["a", "a"], ["x", "x"] ].

The input is always valid. You may assume that evaluating the queries will result in no division by zero and there is no contradiction.

See the full details of the problem Evaluate Division at LeetCode

Originally posted at: