leetle

Daily challenge for 2025-09-19

262. Evaluate Division

You are given an array of variable pairs equations, an array of real numbers values, and an array of queries. Each equation equations[i] = [A, B] and values[i] represent the equation A / B = values[i]. Return the answers to all queries as an array.

Example:
Input: equations = [["a","b"],["b","c"]], values = [2.0,3.0], queries = [["a","c"],["b","a"]]
Output: [6.0,0.5]

Run this challenge interactively in Python or JavaScript when the app loads.