You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You are given an array of variable pairs equations and an array of real numbers values, where equations[i] = [Ai, Bi] and values[i] represent the equation Ai / Bi = values[i]. Each Ai or Bi is a string that represents a single variable.
5
+
6
+
You are also given some queries, where queries[j] = [Cj, Dj] represents the jth query where you must find the answer for Cj / Dj = ?.
7
+
8
+
Return the answers to all queries. If a single answer cannot be determined, return -1.0.
9
+
10
+
Note: The input is always valid. You may assume that evaluating the queries will not result in division by zero and that there is no contradiction.
0 commit comments