Sorting algorithms Flashcards

1
Q

What is the time complexity of bubble sort?

A

O (n^2)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the time complexity of insertion sort?

A

O (n^2)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the time complexity of merge sort?

A

O (n log(n))

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the time complexity of quick sort?

A

O(n^2)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly