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
| Attempt | Points | Time ↓ |
|---|---|---|
| Try #23 | 100 | 9/4/2024 |
| Try #22 | 100 | 8/20/2024 |
| Try #21 | 100 | 8/20/2024 |
| Try #20 | 90 | 8/20/2024 |
| Try #19 | 100 | 8/20/2024 |
| Try #18 | 100 | 8/20/2024 |
| Try #17 | 100 | 8/20/2024 |
| Try #16 | 100 | 8/20/2024 |
| Try #15 | 100 | 8/20/2024 |
| Try #14 | 100 | 8/20/2024 |
| Try #13 | 100 | 8/20/2024 |
| Try #12 | 0 | 8/20/2024 |
| Try #11 | 100 | 8/20/2024 |
| Try #10 | 100 | 8/20/2024 |
| Try #9 | 100 | 8/20/2024 |
| Try #8 | 100 | 8/20/2024 |
| Try #7 | 0 | 8/20/2024 |
| Try #6 | 60 | 8/20/2024 |
| Try #5 | 100 | 8/20/2024 |
| Try #4 | 100 | 8/20/2024 |
| Try #3 | 10 | 8/20/2024 |
| Try #2 | 100 | 8/20/2024 |
| Try #1 | 100 | 8/20/2024 |