← ALL NOTES
Array

399. Evaluate Division

Given equations like a/b = 2.0, answer division queries like x/y, or −1 if the ratio isn't derivable. The reframing that cracks it: variables are graph nodes, each equation a/b = v is a weighted…

Loading…