Data Structured57_q1_sbv

Stack by Vector

22cc3d29-14ea-4461-bc89-5ad00b391731.cppC++
1// Loading code...

Selected Submission

100 / 100
0.121s
67096 KB
StackArray
Time Comp.
O(1) for push, pop, top, and size operations (amortized for push).
Space Comp.
O(n) where n is the number of elements in the stack.
Readability
7/10

"The code implements a stack data structure using a vector as the underlying container. The core functionality revolves around push, pop, top, and size operations, which are characteristic of a stack."

History

AttemptPoints Time
Try #110010/5/2024