InterviewDB Question

Proximity Request Routing: Route Incoming Requests to the Nearest Available Server

Question Details

Problem You have n servers on a 2D grid, each at a position (x, y) with a maximum capacity c. Given a list of incoming requests, each at a position (rx, ry), route each request to the nearest server (Manhattan distance) that still has remaining capac…

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Coding Oa