Ten Slots At A Time
A team replaces capacity *= 2 with capacity += 10 to "save memory." The list starts at capacity 10 and receives 100,000 appends; every resize copies all elements currently stored.
How many element copies does each policy perform?
Sign in to answer questions and track your progress
Sign In