advanced
Challenge: the most frequent words
Implement this from the stub. Hidden tests grade the behaviour you write, not the comments you leave.
Challenge: The Most Frequent Words
export function topFrequent(words: string[], k: number): string[] {
// Your implementation here
}challenge — implement from scratchCtrl+↵ submits · Ctrl+Shift+↵ runsstarter code