Available question text
Given a set of pairwise unit conversion ratios, build a weighted graph or use a weighted union-find to answer queries by finding a path between two units and multiplying edge weights to get the conversion factor (returning -1 or equivalent for unreachable/unknown units).
Related questions
Continue with questions that share topics or the same question type.
- Unit Conversion I
Coding
- Analyze Subscription Conversion
Coding
- Hexadecimal and Hexatrigesimal Conversion
Coding
- Write SQL for post-trial conversion cohorts
Coding · Experiment Analysis & Readout
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 3535. Unit Conversion II
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source