LeetCode
Question
·
Jul 2021
Snapchat Phone Screen
2 upvotes
1,953 views
8 replies
Question Details
Question - Design a class/method AddAndGetTopK to add a number and get top K frequent elements. Eg - k = 3 4 4,5 4,5,4 => 4,5 4,5,4,6 => 4,5,6 4,5,4,6,5 => 4,5,6 4,5,4,6,5,7 => 4,5,6 4,5,4,6,5,7,7 => 4,5,7 I...
Full Details
🔒
Unlock all Snap questions
Full insider details, leaked discussions, and candidate experiences.
or every company, $100/year →About This Question
This is a reported interview question from a snap interview for a swe role during the phone screen round reported in 2021.
It covers the following topics: Binary Tree, System Design, Heap .