1 Add a new operation keyArray() to the Map class that returns an array con- taining all of the keys stored in the map. The array of keys should be in no particular ordering. 2 Add Python operators to...


1 Add a new operation keyArray() to the Map class that returns an array con- taining all of the keys stored in the map. The array of keys should be in no particular ordering.


2 Add Python operators to the Map class that can be used to perform similar operations to those already de_ned by named methods:


Operator Method Current Method setitem (key, value) add(key, value) getitem (key) valueOf(key)


3 Design and implement the iterator class SetIterator for use with the Set ADT implemented using a list.



Nov 23, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here