Twitter / X

Twitter / X

Real-time social platform with petabyte-scale data and ML ranking systems.

4 Rounds ~14 Days Hard
Start Mock Interview

The Interview Loop

Recruiter Screen (30 min)

Standard fit check, behavioral questions, and resume overview.

Technical Loop (3-4 Rounds)

Deep dive into domain knowledge, coding, and system design.

Interview Question Bank

Full Stack Engineer Coding medium

Write a function to calculate the length of a Tweet. Note that URLs always count as 23 characters, and emojis/special Unicode characters should be counted correctly as single characters despite surrogate pairs.

#String Manipulation #Regex #Unicode
Full Stack Engineer Coding medium

Implement a rate limiter for the X API that allows a user to make N requests per time window T. How would you handle this in a distributed environment?

#Sliding Window #Concurrency #Distributed Systems
Full Stack Engineer Coding hard

Given K sorted arrays representing timelines of users you follow, merge them into a single sorted timeline of the most recent tweets.

#Heaps #Merge Sort #Arrays
Full Stack Engineer Coding hard

Find the shortest path between two users on X (Degrees of Separation). You are given an API call `getFollowers(userId)`.

#Graph Traversal #BFS #Bidirectional BFS
Full Stack Engineer Coding easy

Write a function to parse a raw tweet string and extract all valid hashtags, ignoring punctuation immediately following the tag.

#String Parsing #Regex
Full Stack Engineer Coding medium

Given a stream of tweets, write an algorithm to find the Top K frequent words (Trending Topics) in the last hour.

#Heaps #Hash Maps #Stream Processing

Difficulty Radar

Based on recent AI-sourced data.

Meet Your Interviewers

The "Standard" Interviewer

Senior Engineer

Focuses on core competencies, system constraints, and clear communication.

Simulate

Unwritten Rules

Think Out Loud

Always explain your thought process before writing code or drawing architecture.

Practice Now