Question: when I coding, it shows my grade is 9/100 because size should be 11 after 10 things and prepend but instead of 10. I don't
when I coding, it shows my grade is 9/100 because size should be 11 after 10 things and prepend but instead of 10.
I don't which how could I fix it, thank you 



CS 143 Assignment 1 IntArray With Prepend DUE on Monday, October 9 at 11:59 PM In class, we implemented an IntArray class which internally had an array of integers but ENHANCEd it by making it easy to add new elements to the end. We saw that adding n elements to an IntArray would only take O(n) time. It accomplished this by doubling the underlying size of the array and copying the old array every time it ran out of space. If n total elements are added to the array, in the worst case, the array might have run out of space and had to copy itself when the very last (nth) element was added, when thend element was added, th,th and so on down to the starting size of the array. Every time the array runs out of space, it needs to copy all the elements from the old array to the new array. However, even as n becomes very large and this series becomes arbitrarily long, n
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
