Based on the described approach for BagArray that replaces the removed value with the last value in the array instead of shifting.  What would be the state of the following array after a call to remove("twix")? A linear array showing the items 'skittles', 'snickers', 'snickers', 'twix', 'nerds', 'kitkat' arranged left to right with 3 empty array fields

A) A linear array showing the items 'snickers', 'snickers', 'twix', 'nerds', and 'kitkat' arranged left to right with 3 empty array fields
B) A linear array showing the items 'skittles', 'snickers', 'snickers', 'nerds', and 'kitkat' arranged left to right with 3 empty array fields
C) A linear array showing the items 'skittles', 'snickers', 'snickers', 'kitkat', and 'nerds' arranged left to right with 4 empty array fields
D) A linear array showing the items 'skittles', 'snickers', 'snickers', 'nerds', and 'kitkat' arranged left to right with 4 empty array fields

C
  • A
  • B
  • D

There are no hints for this question