-
Notifications
You must be signed in to change notification settings - Fork 0
/
Week0004-Specs.txt
26 lines (22 loc) · 985 Bytes
/
Week0004-Specs.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Event Guests
Now you are in event management business. You have 2 events taking place on the same day, at the same time. You noticed some guests registered for both events and want to notify them so they can pick either of the events.
Input
fname,lname,email
Bob,Dylan,[email protected]
Bill,Gates,[email protected]
...
There is 1 CSV file for each event
All CSV files contain valid data
Names and emails do not contain comma ,
Names and emails are case-insensitive
Some highly esteemed guests have interesting names: O'Reilly, da Gama, van Derks, ...
All foreign names are transliterated to English. Don't worry about Vietnamese, Chinese or Russian ;)
One guest can have only one email
Output
Bill Gates <[email protected]>
Bob Dylan <[email protected]>
...
Print to STDOUT
Print the guests who registered for both events in the format above
Note that there are no more , in the output and emails are wrapped in <>
Sort the guests by first name and then by the last name, and then by email