Question: public static void copy ( List l 1 ) { List l 2 = new List < > ( ) ; int n = l
public static void copyList l
List l new List;
int n lsize;
for int i; i n; i
int next lremove;
laddnext;
The above method is
Question options:
about the same speed in expectation independent of whether l and l are both ArrayLists or Skiplists
much faster in expectation when l and l are ArrayLists
much faster in expectation when l and l are Skiplists
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
