ArrayList Implementation
When an ArrayList
How much more space does an ArrayList
a. Increase the capacity by 10.
b. Double the current capacity.
c. Increase the capacity by 1.
Assume that
• an ArrayList
• new data come one value at a time, and
• eventually the list will need to accommodate 80 values.
Calculate the total number of elements that are copied using each of the three strategies for resizing. Which strategy would use you use to implement ArrayList
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.