← All problemsSign in

Alt-Tab

CodeChefRating 1396Open on judge ↗

Gigi got bored and started to open/reopen some programs on his computer. By reopening a program, we mean that the program was previously opened, wasn't closed in the meantime, and is brought into attention again. After a while, Gigi wants to know the order in which the programs show up if he were to press `alt + tab`. Note that the `alt + tab` function displays a list of all **unique** active

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