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
| Attempt | Points | Time ↓ |
|---|---|---|
| Try #12 | 100 | 9/10/2024 |
| Try #11 | 100 | 9/10/2024 |
| Try #10 | 100 | 9/10/2024 |
| Try #9 | 100 | 8/27/2024 |
| Try #8 | 100 | 8/27/2024 |
| Try #7 | 100 | 8/27/2024 |
| Try #6 | 70 | 8/27/2024 |
| Try #5 | 100 | 8/27/2024 |
| Try #4 | 0 | 8/27/2024 |
| Try #3 | 100 | 8/27/2024 |
| Try #2 | 100 | 8/27/2024 |
| Try #1 | 100 | 8/27/2024 |