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

AttemptPoints Time
Try #1110011/3/2024
Try #10011/3/2024
Try #910010/17/2024
Try #8010/16/2024
Try #7010/16/2024
Try #6010/16/2024
Try #5010/16/2024
Try #4010/16/2024
Try #3010/16/2024
Try #2010/16/2024
Try #1010/16/2024