Data Structured59_q1_pop_many

Pop Many

371d9d52-c764-4ca3-abb7-72b02035796e.cppC++
1// Loading code...

Selected Submission

100 / 100
0.014s
1524 KB
StackArray
Time Comp.
O(K) for remove_top, O(1) for multi_pop
Space Comp.
O(K) for remove_top, O(1) for multi_pop
Readability
6/10

"The code implements a custom stack class with `multi_pop` and `remove_top` methods. The core data structure used is a stack, and it utilizes an underlying array (`mData`) to store the elements."

History

AttemptPoints Time
Try #710010/4/2024
Try #63010/4/2024
Try #53010/4/2024
Try #43010/4/2024
Try #31010/4/2024
Try #2010/4/2024
Try #1010/4/2024