Vidyalelo
Data Structure · Q159

Sorting Algorithms

Programming · Data Structure · question 159

Q159

What is the running time of an insertion sort algorithm if the input is pre-sorted?

A.
O(N2)
B.
O(N log N)
C.
O(N)
Answer
D.
O(M log N)

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board