What methods from the following make sense for the ADT of a sorted list? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What methods from the following make sense for the ADT of a sorted list?

What methods from the following make sense for the ADT of a sorted list? Note: This is a multiple-answer question. o removeFirst() o first() o add(object) o size() o last() o isEmpty() o removeLast() o remove(object) ------------------------------------------------------------------------------------------- I want to say the answer is all the above except add(object) and remove(object) but i'm unsure.

1st Apr 2020, 1:23 AM
Cyrus
2 Answers
0
This is all the question is asking of on the review which is to detemrine which method makes the most logical sence for ADT of a sorted list.
1st Apr 2020, 1:49 AM
Cyrus
0
minimum is: size() add(object) remove(object) + isEmpty() can be usefull other is necessary for linked list as internal methods, but, this is abstract list and we don't know how it is implemented
1st Apr 2020, 9:03 AM
zemiak