Page 1 of 1

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

Posted: Wed Jul 13, 2022 6:15 pm
by answerhappygod
a) O(N2)
b) O(N log N)
c) O(N)
d) O(M log N)