Social Network
CodeChefOpen on judge ↗
Problem description. Chotu feels that he has very few friends in his social network compared to his batch mates. He decided to expand his network but needs some help from you to identify friend(s) who can introduce him to a new member whom he would like to add to his network. Input N C1 id_1 id_2 id_3 ... C2 ... C3 ... ... Cn ... K ID 11 ID12 ID21 ID22 .. .. IDk1 IDk2 In t
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