Change the Set
The class for type T must override the << operator. To convert the return value of << to a string, do the following:
# include
...
stringstream temp;
temp << instance of Class;
string s = temp.str();
For an additional challenge, implement the set using both a hash table and a linked list. Items added to the set should be stored using both data structures. Any operation requiring lookup of an item should use the hash table, and any operation requiring iteration through the items should use the linked list.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.