InterviewDB
Experience
User Likes Tracker - Efficiently Track and Query User Content Likes
phone
Interview Experience
Round 1 - Coding / OOD Problem Design a UserLikesTracker that records when users like or unlike content items, and supports efficient queries. Each like/unlike event has a user ID, item ID, and timestamp. Example Follow-ups How do you make top_liked_items O(log k) instead of O(n log n) on each call? How do you handle late-arriving events where unlike arrives before like due to network delays? At 1M users and 100M items, how do you store like state efficiently in memory? How do you expose a feed…
Full Details
🔒
Unlock all Lead Bank questions
Full insider details, leaked discussions, and candidate experiences.
Get full access — $100 a year, unlimited accessAbout This Question
This is a candidate experience report from a lead bank interview during the phone round.