Uber logoUber
CodingMembers

Evaluate Division

Members only

You are given equations such as A / B = k, represented by equations[i] = [A, B] and values[i] = k. For each query [C, D], return the value of C / D if it can be derived from the given equations, or -1...

SWE
graph
dfs
union-find
medium
Frequency
Single report
Last asked
2026-02-15
Stage
phone-screen

Log in to continue reading the full content