Data Structured62_q2c_wasted_space
Wasted Space
e019dc94-d39c-4d5f-acc8-fca5480a6ec7.cppC++
1// Loading code...Selected Submission
100 / 100
0.001s
1460 KB
ArrayImplementation
Time Comp.
O(log n)
Space Comp.
O(n)
Readability
6/10
"The code utilizes a vector to store a sequence of numbers and then employs the `lower_bound` algorithm, which relies on the sorted nature of the vector. Therefore, the core data structure is an Array and the key algorithm is related to searching in a sorted array."
History
| Attempt | Points | Time ↓ |
|---|---|---|
| Try #1 | 100 | 9/20/2024 |