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