InterviewDB Question

Currency Conversion: Build a Conversion Graph and Find Exchange Rates Between Any Two Currencies

Question Details

Problem You are given a list of direct exchange rates between currency pairs. Given a source currency and a target currency, find the effective exchange rate through any chain of conversions, or return -1.0 if no path exists. Example: Approach Model…

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Coding Phone