Kotak SDE Hiring May 2026 | Debugging Challenge | Minimum Cost to Connect Graph Clusters | Hacker Rank
Question · Posted Jun 2026
Debugging – Minimum Cost to Connect Graph Clusters You are given a code for the following problem statement in the minimumClusterConnectionCost function. However, the solution fails the test cases because there are bugs in the code. Your task is to find and fix all the bugs so that it passes all the test cases. Statement You are given a connected undirected graph with N nodes and M weighted edges. However, due to a data issue, some parts of the graph ...
The full answer & interview discussion are available to premium members.
Log in Create a free account