Data Structured67_q2b_wasted_space_2
Wasted Space 2
f64e267c-4a73-4a3b-b683-2fe666a18137.cppC++
1// Loading code...Selected Submission
100 / 100
0.007s
1544 KB
Implementation
Time Comp.
O(c)
Space Comp.
O(1)
Readability
5/10
"The code primarily uses a `long long` variable `currentSize` to track a running total and `maxSize` to store the maximum size encountered. The core logic involves updating these variables based on input commands, making it a simulation-based implementation."
History
| Attempt | Points | Time ↓ |
|---|---|---|
| Try #16 | 100 | 11/4/2024 |
| Try #15 | 75 | 11/4/2024 |
| Try #14 | 75 | 11/4/2024 |
| Try #13 | 60 | 11/4/2024 |
| Try #12 | 0 | 11/4/2024 |
| Try #11 | 60 | 11/4/2024 |
| Try #10 | 10 | 11/4/2024 |
| Try #9 | 10 | 11/4/2024 |
| Try #8 | 10 | 11/4/2024 |
| Try #7 | 10 | 11/4/2024 |
| Try #6 | 10 | 11/4/2024 |
| Try #5 | 10 | 11/4/2024 |
| Try #4 | 0 | 11/4/2024 |
| Try #3 | 0 | 11/4/2024 |
| Try #2 | 0 | 11/4/2024 |
| Try #1 | 0 | 11/4/2024 |