Big O Notation Flashcards

1
Q

Arrays - r/w i-th elemen

A

O(1)

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

Arrays - Insert / Remove End

A

O(1)

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

Arrays - Insert Middle

A

O(n), might have to move all elements

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

Arrays - Remove Middle

A

O(n), might have to move all elements

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