Minimize Direction Violations in a Directed Road Network
Company: Google
Role: Software Engineer
Category: Coding & Algorithms
Difficulty: medium
Interview Round: Onsite
Overview: Find a route through a directed road network that minimizes travel against the original edge directions. Model forward and reverse traversal costs correctly, handle parallel edges and disconnected nodes, and choose a shortest-path approach that scales to hundreds of thousands of vertices and edges.