Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How strict will you be on da and cda capacity after removals? Most of my capacity output is good but on some instances I've had empty arrays still have a capacity of 4 when i believe it should be 2.
Suppose capacity is four and size is four. The array won't shrink until the array goes empty. At which, the array capacity should shrink from 4 to 2.

Can you give an example of insertions and deletions where you end up with an empty array with capacity four?
I fixed my issue.

Forum Jump:

Users browsing this thread: 1 Guest(s)