Find the conversion rate from a source currency to a destination currency.
Unlock detailed company stats for this questionUpgrade
The interviewer gave an example such as 1 USD = 100 INR and a table containing conversion rates between different currencies. Find the conversion rate from a source currency to a destination currency. I modeled the currencies as a graph and used DFS to find the conversion path, then explained the time complexity and did a dry run.
Community answers
No answers contributed by the community yet.


