Evaluate Division

Try to solve the Evaluate Division problem.

Statement

We are given three arrays:

  1. equations: Here, each equations[i] represents a pair of variables [a[i], b[i]], where each a[i] or b[i] is a string that represents a single variable.

  2. values: This array contains real numbers that are the result values when the first variable in equations[i] is divided by the second. For example, if equations[i] = ["m", "n"] and ...

Create a free account to view this lesson.

By signing up, you agree to Educative's Terms of Service and Privacy Policy