Gangs of MSITpur
CodeChefOpen on judge ↗
The Director of your college needs to find out the total number of friend circles (gangs) in your college to enforce a new discipline strategy. He also needs to know the number of students in the biggest gang. You being the best programmer in your college are chosen for this task. A survey was done in your college and any two people found talking a lot, giving hi-fives, sharing lunch, were added
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