Total Graphs (keteki)
CodeChefOpen on judge ↗
There is a connected graph with no loops and no cycles. You can disconnect a node from all the nodes it is connected to. Find the maximum number of connected components that can be formed by disconnecting one node in that graph, print that number. Points: Single input each test case. 5 test cases, each case 10 points. Input Description: The input starts with an integer N, the number o
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