Data Structureds02_is_reverse
Is Reverse?
2ebd051d-4777-49c1-9919-bf56bf94539c.cppC++
1// Loading code...Selected Submission
100 / 100
0.019s
2332 KB
ArrayImplementation
Time Comp.
O(n) for many operations like insert, erase, and isReverse (where n is the size of the vector).
Space Comp.
O(n) where n is the capacity of the vector.
Readability
6/10
"The code implements a custom vector class with functionalities like resizing, insertion, deletion, and access. The core data structure used is a dynamically allocated array, and the class provides methods to manipulate this array. The `isReverse` function checks if one vector is the reverse of another."
History
| Attempt | Points | Time ↓ |
|---|---|---|
| Try #5 | 100 | 9/20/2024 |
| Try #4 | 100 | 9/20/2024 |
| Try #3 | 61.11 | 9/20/2024 |
| Try #2 | 0 | 9/20/2024 |
| Try #1 | 44.44 | 9/20/2024 |