The interface Listlnterface, as described in this chapter, does not contain a method position that returns the number of a particular item, given the item’s value. Such a method enables you to pass the node’s number to remove, for example, to delete the item.
Define a subinterface of Listlnterface that has position as a method as well as methods that insert, delete, and retrieve items by their values instead of their positions. Write a class that implements this interface. Always make insertions at the beginning of the list. Although the items in this list are not sorted, the new ADT is analogous to SortedList, which contains the method locatePosition.
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.