adplus-dvertising
frame-decoration

Question

The worst case complexity for insertion sort is

a.

O(n)

b.

O(log n)

c.

O(n²)

d.

O(n log n)

Answer: (c).O(n²)

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. The worst case complexity for insertion sort is