Data Structured62_q1a_punch
Vector Punch
07a08cfd-3016-4fe8-acc5-6bbe9a0b3f5f.cppC++
1// Loading code...Selected Submission
100 / 100
0.002s
1460 KB
Array
Time Comp.
O(n) where n is the size of the vector, due to the erase operation which may require shifting elements.
Space Comp.
O(n) in the worst case, as the vector 'v' and 'result' can store up to n strings.
Readability
4/10
"The code primarily uses a vector to store strings and manipulates it using iterators and the erase function. The core operation revolves around vector manipulation, making "Array" the most appropriate tag."
History
| Attempt | Points | Time ↓ |
|---|---|---|
| Try #4 | 100 | 8/20/2024 |
| Try #3 | 100 | 8/15/2024 |
| Try #2 | 100 | 8/15/2024 |
| Try #1 | 0 | 8/15/2024 |