Array shifts
When an array element is removed using delete, it does not shrink the array length. This leaves a gap in the array. Here we introduce an technique to shrink the array after removing an element.
Last updated
Was this helpful?
When an array element is removed using delete, it does not shrink the array length. This leaves a gap in the array. Here we introduce an technique to shrink the array after removing an element.
Last updated
Was this helpful?