Question: A certain program must store the names of all the people who finish the City Marathon. The names are entered by an official at the
A certain program must store the names of all the people who finish the City Marathon. The names are entered by an official at the finish line as the competitors finish.
After the race is over the program must print a list only containing the names of competitors who placed to and then and so on as these competitors will receive a special medallion.
Which data structure would be the best choice for this program?
Pick ONE option
A vector or resizable array
L
A map implemented as a binary tree of keyvalue pairs
A singly linked list
A hash set implemented as a hash table of keys
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
