in Others edited by
128 views
1 vote
1 vote

Which of the following is true for a sorted list with ' $n$ ' elements?

  1. Insertion in a sorted array takes constant time.
  2. Insertion in a sorted linear linked list takes constant time.
  3. Searching for a key in a sorted array can be done in $\mathrm{O}(\log n)$ time.
  4. Searching for a key in a sorted linear linked list can be done in $\mathrm{O}(\log n)$ time.

     

in Others edited by
by
128 views

1 Answer

0 votes
0 votes
Only C is true As we can do Binary search on sorted array to searching The key.

Related questions