Best Currency Conversion Rate

You are given a set of directed currency-conversion records. Each record (from, to, rate) means that 1 unit of currency from can be converted into rate units of currency to.

Given a sou...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: