July 4th Sale
Limited Time Deal: Unlock all premium questions for over 40% off
$10.42$6.25
Ending Soon
Back to Discussions⭐ Join thousands of engineers in our community
Google | Internship | SWE Internship
+100 coins
immune_gazelle544
May 9, 2026 at 05:22 PM
0
0
Given an integer array nums and an integer k, return the k most frequent elements. You may return the answer in any order. Additional submission details: Test cases: Example 1: Input: nums = [1,1,1,2,2,3], k = 2 Output: [1,2] Example 2: Input: nums = [...
0 likes
0 comments
Share
Join the Discussion
Create a free account to read "Google | Internship | SWE Internship" and join our community of engineers sharing interview experiences.
Create an account to view this post
No credit card required.
Access full discussion posts and insights
Connect with other engineers on their job search
Share your own experiences and questions