Consider a dynamic array with a capacity of and a size of . This means that there are currently elements in the array. We perform the following sequence of operations:
add 7
add 1
add 3
insert 4 3
add 6
add 7
add 8Tip: Here add means "add an element to the end of the array" and insert means "add an element at the specified index ".
Once all operations are performed, what will be the difference between the capacity of the new array (new_capacity) and its size (new_size)? Print this number, i.e. new_capacity - new_size in the field below.
Assume that the scaling factor for the array is . This means that when the array's capacity is increased, it becomes twice as big as the capacity of the array at the previous step, not the initial capacity of the array.