Question bank › Queue
Dsa Queue Warm-up

Presentation Queue

You are helping manage a queue for a presentation where each participant has a specific ID and name. The participants will present their topics in the order they are queued. Create a program that reads the list of participants and prints their names while maintaining the order of their presentation. Input format: - The first line contains an integer n (1 ≤ n ≤ 100) - the number of participants. - The following n lines each contain a participant in the format "<participant_id> <name>". Output format: - Print the names of the participants in the order they are queued, each on a new line. Example: Input: 3 101 Alice 102 Bob 103 Charlie Output: Alice Bob Charlie

Key concepts

queueevent management

Practise this out loud — free

Start a mock interview on THIS exact question — a voice AI interviewer opens with it, pushes back like a real onsite, then hands you an instant scorecard.

🎙 Practise this question now
Part of InterviewLab's verified interview question bank. We show the prompt and concepts to practise with — never a copy-paste solution.