Ezvor

1772. Sort Features by Popularity

MediumArray Preparing judge… LeetCode
ArrayHash TableStringSorting

Hints

Hint 1
Use a hash map to count the frequency of each word of each string.
Hint 2
Use the map for sorting the features.