Revise the sorted sequence (Project 7 on page 170) so that it stores the items on a

Question:

Revise the sorted sequence (Project 7 on page 170) so that it stores the items on a linked list instead of in an array.


Data from Project 7

Rewrite the sequence class using a new class name, DoubleArraySortedSeq. In the new class, the add method always puts the new element so that all the elements stay in order from smallest to largest. There is no addBefore or addAfter method. All the other methods are the same as in the original sequence ADT.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: