big o Flashcards

1
Q

list polynomial and more time complexity

A

O(n^2)

O(k^n)

O(n!)

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

time complexity of

binary search

A

O(log n)

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

time complexity of

bubble sort

A

O(n^2)

for …
for ….

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

time complexity of

linear search

A

O(n)

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

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