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

AttemptPoints Time
Try #61008/22/2024
Try #51008/22/2024
Try #41008/22/2024
Try #31008/22/2024
Try #21008/22/2024
Try #11008/22/2024