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

AttemptPoints Time
Try #51009/20/2024
Try #41009/20/2024
Try #361.119/20/2024
Try #209/20/2024
Try #144.449/20/2024