Reference no: EM133940742
Questions
True and False
1. The order in which we add information to a list has no effect on when we can retrieve it.
2. If N represents the number of elements in the list, then the index-based add method of the ABList class is O(1).
3. Even though our lists will be generic, our ListInterface is not generic.
4. In a non-empty list, the item that has been in the list the longest will be returned by the get operation.
5. Our LBList class inherits from the ABList class.
6. If N represents the number of elements in the list, then the index-based set method of the ABList class is O(N).
7. Our ListInterface defines two constructors.
8. The ListInterface is simply a repeat of the CollectionInterface.
9. The text's array-based list implementation stores elements in the lowest possible indices of the array.
10. If N represents the number of elements in the list, then the index-based remove method of the ABList class is O(1).