Phone Screen Interview Question

Nuance / Data
heeloo

Go to company page Nuance Data

heeloo
Nov 27, 2019 4 Comments

Hi guys, I was asked to do below question in phone screen for a leading firm recently. Seems to be a graph based problem. can it be done in 15 mins, is it LC easy?

// Given a list of currency pairs and the rates between these two currencies:

// USD = 6.4CNY, CNY = 0.13 EUR, EUR = 0.87 GBP, GBP = 89.4 INR, ...

//

// Question: Input two currencies, return the rate

// Example: CNY, INR; return 10.1111

// Complexity?

comments

Want to comment? LOG IN or SIGN UP
TOP 4 Comments