LeetCode Experience · Jul 2021

Snapchat Phone Screen

2 upvotes 1,953 views 8 replies

Interview Experience

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 full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Binary Tree System Design Heap