Question: Both the array - based and positional lists provide constant time for inserting an element at the end of the list. Which of the following
Both the arraybased and positional lists provide constant time for inserting an element at the end of the list. Which of the following statements is correct?
Arraybased list supports worst case constant time insertion of element at the end of the list while positional list support amortized constant time insertion of element at the end of the list.
Arraybased list supports amortized constant time insertion of element at the end of the list while positional list support worst case constant time insertion of element at the end of the list.
Both arraybased and positional lists support worst case constant time insertion of element at the end of the lists.
Both arraybased and positional lists support amortized constant time insertion of element at the end of the lists.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
