Open john916zhang opened 2 years ago
We should use lastElementIndex instead of lastCapacityIndex. In the current approach, all elements will move to the very end of the capacity, not necessarily one forward.
We should use lastElementIndex instead of lastCapacityIndex. In the current approach, all elements will move to the very end of the capacity, not necessarily one forward.