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