As shown in the problem description, you have to count the number of students who have signed up for each project. There are some important hints in this problem that you have to concern :
If someone has signed up for more than one project do not count him for any of them.
If someone has written his name for a project more than one time, It's OK, just count him once in that project.
Data structure I use in this problem :
set (string) ===
vector (int, string) === to produce output and sort it by number of students attending each project and then alphabetically by the name of the project
No comments:
Post a Comment