InterviewDB Question

Optimal Commute Path: Shortest Path with Time-Dependent Edge Weights

Question Details

Problem You are given a city graph where edges represent roads. Each road has a base travel time, but also a congestion_factor(hour) function that multiplies the base time during rush hours. Given a start node, an end node, and a departure hour, find…

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Coding Onsite Phone