Question

A programmer is implementing a data analysis tool that frequently needs to append elements to a collection. If an array is used, what is a potential performance bottleneck during this operation?

A O(1) access time
B O(n) search time
C O(n) for resizing when the array is full
D O(log n) for sorting
E O(1) deletion at the end
Practice Next

Hey! Ask a query