Data Structured64_q1a_card_battle

Card Battle

2ae34ade-facc-4c5f-b703-eba8e673c8b5.cppC++
1// Loading code...

Selected Submission

100 / 100
0.322s
15280 KB
SetArray
Time Comp.
O(m * c * log(n))
Space Comp.
O(n)
Readability
4/10

"The code utilizes a `std::set` to store unique card values and an array `mtdt` to keep track of the count of each card. The set allows for efficient searching of the next available card, and the array provides a way to decrement the count of used cards."

History

AttemptPoints Time
Try #121009/10/2024
Try #111009/10/2024
Try #101009/10/2024
Try #91008/27/2024
Try #81008/27/2024
Try #71008/27/2024
Try #6708/27/2024
Try #51008/27/2024
Try #408/27/2024
Try #31008/27/2024
Try #21008/27/2024
Try #11008/27/2024