← All problemsSign in

EVERYBODY WANTS TO PLAY

$Hostel$ $is$ $fun$ Today every body decided to play game of cards in hostel room. Obviously playing card is not allowed in hostel. If you get caught playing there is fine to pay. Ron came with an idea for the situation. "Let us make some one stand outside, so that he will inform us if anyone comes". Everybody agreed with him but now the question was who will wait outside.Every one tol

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