Practice
Learn
← Quit
0 / 0 correct
Data Structures
Medium
1 of 20
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
Stacks need random access
C
Arrays support O(1) insert at the front
D
Arrays never resize