Back to QuestionsPractice with This Question
Evaluate Division (Union-Find)
137.9K views•Asked at Google•
Medium
Question Explain
Given a set of equations $A/B = k$ and queries $C/D = ?$, calculate the result of the queries. Use a Graph (or Union-Find) to represent the division relationships.
Start Trying This Question Simulation
Practice answering orally or with text to get instant AI feedback.