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
| Attempt | Points | Time ↓ |
|---|---|---|
| Try #7 | 100 | 10/4/2024 |
| Try #6 | 30 | 10/4/2024 |
| Try #5 | 30 | 10/4/2024 |
| Try #4 | 30 | 10/4/2024 |
| Try #3 | 10 | 10/4/2024 |
| Try #2 | 0 | 10/4/2024 |
| Try #1 | 0 | 10/4/2024 |