Celebrity In Trouble
CodeChefOpen on judge ↗
A late night party is going on in hotel Taj. There are N persons numbered from 1, 2, 3 ..... N (assume one based indexing) and a celebrity is present in the party. Some goons are planning to assassin the celebrity, meanwhile cops come to know about the assassination, so they arrive immediately at the party to protect the celebrity. A person can be termed as a Celebrity if he/she fulfills followin
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