JavaScript is required for SkillAI Hub to work properly. Please enable JavaScript and refresh the page.
Coding Challenge · BEGINNER
Given an array of integers, find the k most frequent elements. Return the elements in any order.