Data Structureds01_most

Most Frequent Word

4a9d89c6-07fc-4331-8dc0-e40752b2e46b.cppC++
1// Loading code...

Selected Submission

100 / 100
0.008s
2632 KB
HashMap
Time Comp.
O(n)
Space Comp.
O(n)
Readability
7/10

"The code uses an unordered map to store word frequencies, and then iterates through it to find the most frequent word (and the lexicographically largest one in case of ties). This clearly indicates the use of a Hash Map."

History

AttemptPoints Time
Try #231009/4/2024
Try #221008/20/2024
Try #211008/20/2024
Try #20908/20/2024
Try #191008/20/2024
Try #181008/20/2024
Try #171008/20/2024
Try #161008/20/2024
Try #151008/20/2024
Try #141008/20/2024
Try #131008/20/2024
Try #1208/20/2024
Try #111008/20/2024
Try #101008/20/2024
Try #91008/20/2024
Try #81008/20/2024
Try #708/20/2024
Try #6608/20/2024
Try #51008/20/2024
Try #41008/20/2024
Try #3108/20/2024
Try #21008/20/2024
Try #11008/20/2024