Hostel LAN Connection
CodeChefOpen on judge ↗
The Hostel LAN connection is to be laid down. Rooms in the Hostel lie all in a straight line. It is always desired to use minimum number of cable wires for this work and all the rooms receive the LAN service. A room can either get connected to main line or it can get connected to a room to its immediate let or right provided the latter room is already getting the LAN service. You are to write a pr
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.
Sign in to chat with the tutor and save your progress.
Sign in to start