Data Structured65_q3a_queue_min
Queue Min Element
5b6652db-3b43-4542-8e19-ea63fce3577d.cppC++
1// Loading code...Selected Submission
100 / 100
0.042s
13980 KB
ArrayImplementation
Time Comp.
O(N)
Space Comp.
O(K), where K is the number of elements in 'pos'
Readability
6/10
"The code implements a `min_element` function for a custom queue data structure. It utilizes a vector to store elements from the queue based on given positions and then finds the minimum element within that vector using `std::min_element`. Therefore, the core data structure used is a vector (Array)."
History
| Attempt | Points | Time ↓ |
|---|---|---|
| Try #11 | 100 | 11/3/2024 |
| Try #10 | 0 | 11/3/2024 |
| Try #9 | 100 | 10/17/2024 |
| Try #8 | 0 | 10/16/2024 |
| Try #7 | 0 | 10/16/2024 |
| Try #6 | 0 | 10/16/2024 |
| Try #5 | 0 | 10/16/2024 |
| Try #4 | 0 | 10/16/2024 |
| Try #3 | 0 | 10/16/2024 |
| Try #2 | 0 | 10/16/2024 |
| Try #1 | 0 | 10/16/2024 |