Design Trending Topics
Trending topics looks like the easy cousin of the timeline: just count hashtags and show the biggest ones. The trouble is hiding in the word "count." The timeline moves a known post to a known set of followers. Trends has to watch an unbounded stream of terms it has never seen before and answer, continuously, which handful are surging right now. Two things make that hard: the volume is enormous and never pauses, so the counting has to happen in one streaming pass. And the number of distinct terms is huge, in the tens of millions an hour, so you cannot afford a running tally for each one.
- 1 diagram
- 5 sections
- about 44 min
Premium lessonX (Twitter) interview guide
These took digging.
What candidates walked out with, from 20,000+ reports, forum threads behind logins and write-ups in Chinese. Then solved step by step.
100 companies. Checked every month.
Unlock all 100 companies$49 a year · less than $1 a week · Cancel anytime
X (Twitter) interview guideKnow what X (Twitter) asks before you walk in.
19 coding · 5 system design · 20 behavioral questions
Get their questions first.
InterviewLegend is independent and not affiliated with or endorsed by any company it covers.