Question: If we are implementing a dynamically resizing List implementation using an array, how should we increase the size of the array once we exceed the
If we are implementing a dynamically resizing List implementation using an array, how should we increase the size of the array once we exceed the current capacity?
| Create a new array with one additional space for the new element | ||
| Create a new array with 2 additional spaces | ||
| Create a new array with double the space of the current array | ||
| Create a new array with 10 additional spaces |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
