ADITYA MEETING GEETS FAMILY
CodeChefOpen on judge ↗
Geet (bride) when finally realizes that she loves Aditya(groom), she decides to introduce him to her family through a ceremony in which only females from brides’ side are invited, so the ceremony is only attended by bride, groom and all the females from brides’ side. Every time Geet introduces Aditya to someone (let’s say $X$), she also tells every ancestor of x present in the ceremony to Aditya.
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