LeetCode Question · Jun 2024 · USA

Meta Phone Screen

1 upvote 482 views 3 replies

Question Details

Just had a phone screen with META for SWE (not sure what level) in the US First question was https://leetcode.com/problems/buildings-with-an-ocean-view/description/ Second question was https://leetcode.com/problems/top-k-frequent-elements/ I solved the first question pretty easily. But...

Full Details

Just had a phone screen with META for SWE (not sure what level) in the US

First question was https://leetcode.com/problems/buildings-with-an-ocean-view/description/
Second question was https://leetcode.com/problems/top-k-frequent-elements/

I solved the first question pretty easily. But wasn\'t able to complete the second. I offered a solution with a dictionary and a heap, but seems he was only interested in the bucketsort solution.
I didn\'t get a chance to write code on the second question so pretty sure it\'s a fail. I hope this helps someone

About This Question

This is a reported interview question from a meta interview for a swe role during the phone screen round reported in 2024.

It covers the following topics: Hash Table, Heap .