Kaps and his wife
CodeChefOpen on judge ↗
Kaps is planning to celebrate his wife's birthday in a grand way in which he is planning to invite all of his wife's relatives.They have N relatives which are represented by positive integers from 1 to N.M relations are given between people in the form of two integers A B denoting that A and B are close relatives and if A receives the invitation he/she will further invite B and vice versa.But sinc
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