Team Split
CodeChefOpen on judge ↗
Sai is organizing a fun games night and it requires all the N people participating have to be split into two groups, each group should have at least one member. Now some people who are participating are friends and Sai want to make sure that no two friends land in the same group. Now Sai wonders if it is possible to do such a split. Since he is busy he asks his friend Sandesh Ghanta who does probl
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