← All problemsSign in

Series of Cards

Alice and Bob had a bet this morning about a property of a deck of cards which contained cards numbered from 1 to N. Alice said that for this deck of cards it is possible to arrange this card such that the following holds :- 1) We pick up 1 card and put it on the back of the deck. 2) Now, we pick up another card , it turns out to be card numbered 1 , we put it outside the deck. 3) Now we pick

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