For the life of me I cant figure out this simple task
I know with a static array you just simple shift over one element and decrease the size in variable pertaining the length of the array as such
for(i = 0; i < n; i++)
if(key == array[i])
arr[i] = arr[i+1];
n--;
but in the dynamic array you want to of course deallocate the item you remove, hence the point of dynamic allocation dont take up the space if your not using it