Arrays - How fast Get / Sets?
O(1) Constant time
Arrays - How fast Inserts?
O(n) (have to work through all the array elements)
Arrays How fast Deletes
O(n) (have to work through all the array elements)
Array Killer feature
Randsom Access
Describe Array Capacity
Fixed Doesn’t automatically grow
How do you increase the size of an array
Double in size (when resizing)
Does each memory cell of an array us the same number of bytes?
yes
How can arrays be access in constant time O(1)
Because each memory cell of an array us the same number of bytes