Yelp
1 DSA problems asked in Yelp coding interviews
1 problem
Given an array of strings words and an integer k, return the k most frequent words. Sort the answer by frequency from highest to lowest, and sort words with the same frequency in lexicographical order.