Data Structureex00e3
Check Mapping
67a673c6-7e95-4c1f-9a6c-ba7d22ac8ae5.cppC++
1// Loading code...Selected Submission
100 / 100
0.006s
1488 KB
ArrayHashMap
Time Comp.
O(n)
Space Comp.
O(n)
Readability
6/10
"The code uses a boolean vector to track the presence of numbers, effectively acting as a set to check for duplicates and valid range. It's a straightforward implementation with a single loop for input and validation."
History
| Attempt | Points | Time ↓ |
|---|---|---|
| Try #6 | 100 | 8/22/2024 |
| Try #5 | 100 | 8/22/2024 |
| Try #4 | 100 | 8/22/2024 |
| Try #3 | 80 | 8/22/2024 |
| Try #2 | 100 | 8/22/2024 |
| Try #1 | 100 | 8/22/2024 |