FIND THE ISLAND
CodeChefOpen on judge ↗
Technoland is a country made up of many islands. One of the Island is attacked by a group of terrorists. In one Island, there is an undirected path from every city to other city. However the rescue team is not able to reach the desired island as there is no path between two islands. Identify the different islands in techno land and find the minimum number of edges to be added so that we can reach
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