Back to Questions

Evaluate Division (Union-Find)

137.9K viewsAsked 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.

Practice with This Question
Evaluate Division (Union-Find) - Interview Question