Showing 3 of 14 questions
Find the k most frequently occurring words in a given list of words. Return the top k words sorted by frequency, and then alphabetically for words with the same frequency.
#1. Top K Frequent Words
Simulate an order processing system with a backlog of buy and sell orders. Determine the total number of orders remaining in the backlog after processing them in a specific manner.
#2. Number of Orders in the Backlog
You're given pairs of adjacent numbers from a hidden array. Reconstruct and return the original array using these pairs.
#3. Restore the Array From Adjacent Pairs