Coding

Can you devise an algorithm to calculate the most efficient route between two points, considering the distance between cities and available fuel?

Did you come across this question in an interview?

Interview question asked to Frontend Engineers interviewing at Zalando, Shopify, Wrike and others: Can you devise an algorithm to calculate the most efficient route between two points, considering the distance between cities and available fuel?.