Data Structured57_q0_histogram
Histogram
f6404b7a-9d2b-4d29-a5ae-f11da566f37a.cppC++
1// Loading code...Selected Submission
100 / 100
0.012s
3464 KB
HashMapArray
Time Comp.
O(n log n)
Space Comp.
O(n)
Readability
7/10
"The code uses an unordered map to store word frequencies and a vector to store the results. The core functionality revolves around counting occurrences and then sorting the results, making a hash map and array the most relevant data structures."
History
| Attempt | Points | Time ↓ |
|---|---|---|
| Try #6 | 100 | 8/22/2024 |
| Try #5 | 100 | 8/22/2024 |
| Try #4 | 100 | 8/22/2024 |
| Try #3 | 100 | 8/22/2024 |
| Try #2 | 100 | 8/22/2024 |
| Try #1 | 100 | 8/22/2024 |