InterviewDB Question

Shared Pickup Route: Find Minimum Common Stops for Carpooling Passengers

Question Details

Problem You have k passengers, each with a list of acceptable pickup stops (given as stop IDs). A carpool vehicle can service at most one route. Find all stop IDs that appear in every passenger's acceptable list — i.e., stops where all passengers can…

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Coding Onsite Phone