← All problemsSign in

Attendance Disturbance

The professor in Lakshmi's class is frustrated. The students keep repeating their names when she asks for a roll call. She needs to create a list of all the students present for the lecture without writing the same name twice. She also wants to arrange the names in the sorted order. Can you help her out? Input: - First line contains T. T testcases follow. - The first line of each testcase conta

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