Dsa
Hashing
Easy
Employee ID Tracker
You are given a list of employee IDs representing attendance records. Write a program to identify and count how many employees have attended more than once. You should return the list of their IDs sorted in ascending order.
Input format:
A single line containing space-separated employee IDs.
Output format:
A sorted list of IDs of employees who attended more than once.
Example:
Input:
101 202 303 101 404 505 202
Output:
['101', '202']
Key concepts
hashingdictionariescounting
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