Practice
Learn
← Quit
0 / 0 correct
Data Structures
Medium
1 of 10
Why can a stack be implemented with a dynamic array efficiently?
A
Push and pop happen at the end, which is amortized O(1)
B
Arrays support O(1) insert at the front
C
Stacks need random access
D
Arrays never resize