← All problemsSign in

Human Ghoul Neighbouring

In the city of Tokyo, there are $N$ houses spread throughout the city labelled from $1$ to $N$. Some houses are used by HUMANS while some are used by GHOULS( a demon-like being or monstrous humanoid originating in pre-Islamic Arabian religion). Two houses are connected with each other through a road. To maintain the diversity and restrain the population from creating a group with same kind of b

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start