The Question
CodingAward Top K Hotels
Given a set of positive and negative keywords, and a collection of hotel reviews associated with specific hotel IDs, implement a system to rank and return the top K hotels. A positive keyword match increases a hotel's score by a fixed weight, while a negative match decreases it. In case of tie scores, hotels should be ordered by their ID. The solution should handle text normalization and provide efficient ranking for large datasets.
Java
HashSet
HashMap
Sorting
String Parsing
March 13, 2026