Big O Notation Flashcards

1
Q

O(1)

A

Constant time complexity, the operation takes the same time regardless of input size

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

O(n)

A

Linear time complexity; the operation time grows linearly with the input size

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

O(logn)

A

Logarithmic time complexity; the operation time grows logarithmically with the input size

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

O(n^2)

A

Quadratic time complexity; the operation time grows quadratically with the input size

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