Question: 1. ArrayList is more efficient than LinkedList for the following operations: P A. Insert/delete an element in the beginning of the list. B. Insert/delete an

1. ArrayList is more efficient than LinkedList for the following operations: P

A. Insert/delete an element in the beginning of the list.

B. Insert/delete an element at the end of the list.

C. Insert/delete an element in the middle of the list.

D. Retrieve an element given the index.

2. The worst time complexity for merge sort is

A. O(N)

B. O(logn)

C. O(1)

D. O(nn)

E. O(nlogn)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!