Arrays Flashcards

1
Q

Arrays - How fast Get / Sets?

A

O(1) Constant time

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

Arrays - How fast Inserts?

A

O(n) (have to work through all the array elements)

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

Arrays How fast Deletes

A

O(n) (have to work through all the array elements)

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

Array Killer feature

A

Randsom Access

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

Describe Array Capacity

A

Fixed Doesn’t automatically grow

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

How do you increase the size of an array

A

Double in size (when resizing)

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

Does each memory cell of an array us the same number of bytes?

A

yes

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

How can arrays be access in constant time O(1)

A

Because each memory cell of an array us the same number of bytes

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