Given an array of strings words and an integer k, return the k most frequent strings. The result should be sorted by frequency from highest to lowest. If two words have the same frequency, the word…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.