Given division equations
equations with values values and queries queries. For each query [a, b], return the value of a / b, or -1 if it is undefined.Example 1
Input: equations = [["a","b"],["b","c"]], values = [2.0,3.0], queries = [["a","c"],["b","a"]]
Output: [6,0.5]
Explanation: a/c = 6, b/a = 0.5.
Output: [6,0.5]
Explanation: a/c = 6, b/a = 0.5.
Example 2
Input: equations = [["a","b"]], values = [0.5], queries = [["a","b"],["x","y"]]
Output: [0.5,-1]
Explanation: Second query is undefined.
Output: [0.5,-1]
Explanation: Second query is undefined.