Yelp

1 DSA problems asked in Yelp coding interviews

0 Easy
1 Medium
0 Hard
​

1 problem

Heap
1
Top K Frequent Words
Medium

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.