I got this question from LeetCode and I found it particularly interesting.
Given a list of
reviews, a list of
keywords and an integer
k. Find the most popular
k keywords in order of most to least frequently mentioned.
The comparison of strings is case-insensitive.
Multiple occurrences of a keyword in a review should be considered as a single mention.
If keywords are mentioned an equal number of times in reviews, sort alphabetically.