Overview
- Introduction to Dynamic Arrays
- Double Array ()
- half Array ()
- Array vs Dynamic Array
Introduction To Dynamic Arrays
- Array arr=new Array(4
Double Array()
When to grow array ?
- You are trying to insert or append data in array and array is full .
Half Array()
when to call half Array?
- You are trying to delete a data from the array .
After successful deletion, if array is half filled then call halfArray C).
Array vs Dynamic Array
Array | Dynamic Array |
---|---|
Array can't grow or shrink | Dynamic Array can grow or shrink |