Data Structured60_q1_v_uniq
Vector Unique
d6371182-ec62-48c2-88fb-ca40003ae472.cppC++
1// Loading code...Selected Submission
90 / 100
0.071s
9940 KB
HashMapArray
Time Comp.
O(n)
Space Comp.
O(n)
Readability
4/10
"The code utilizes an unordered map to efficiently track the presence of elements in a vector, effectively removing duplicates. It also uses a boolean array to mark elements for removal, indicating array usage as well."
History
| Attempt | Points | Time ↓ |
|---|---|---|
| Try #5 | 90 | 9/20/2024 |
| Try #4 | 100 | 9/20/2024 |
| Try #3 | 100 | 9/20/2024 |
| Try #2 | 10 | 9/20/2024 |
| Try #1 | 0 | 9/20/2024 |