Question: Q2 1 Point You have a dynamic array with 3 elements in it and a capacity of 4 . The capacity doubles when additional space

Q2 1 Point You have a dynamic array with 3 elements in it and a capacity of 4 . The capacity doubles when additional space is needed and shrinks by 50% (rounding down) when the size is at or below 1/3 capacity. Answer the questions below for the following operation sequence: Add, Add, Remove, Remove, Remove Q2.1 0.5 Points What will be the capacity of the list when the whole sequence is completed? Answer = Q2.2 0.5 Points How many times the capacity has changed? Answer =
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
