← All problemsSign in

Suspicious Activity

You are the new night guard at the famous Museum of Natural History and you are required to keep everything in check so as to keep your job. The Museum has $N$ sections and the sections are connected to each other such that they form a tree. At the beginning all the sections are marked as unsuspicious but you have to check area which are suspicious in the museum. You will be given $Q$ queries and

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