← All problemsSign in

MCL PHASE 1 CHALLENGE 205

You want to provide wifi connection in a part of a street. The street is a straight line, similar to an X axis. You should provide connection to a range S to E. (i.e. from the position s distance away from the origin to the position E distance away from the origin). You can install routers wherever you wish, but you want to minimize the number of routers installed. Each router can cover a range of

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start