All Companies
Social Media / Real-Time CommunicationHard

Twitter (X) Interview Guide & Preparation

Twitter (now X) interviews focus on building real-time, high-throughput systems. The process evaluates your ability to handle massive scale — processing hundreds of thousands of tweets per second, fan-out problems, and real-time timelines. While the company has undergone significant changes, the technical interview structure for engineering roles remains focused on distributed systems and scalable architecture.

4
Avg. Rounds
3–5
Weeks Timeline
Hard
Difficulty

Interview Process

1

Application / Referral

Apply through the X careers page or via referral.

2

Recruiter Screen

A brief call to discuss your background and role fit.

3

Technical Phone Screen

A 45-60 minute coding interview over a shared editor. Expect one or two algorithmic problems.

4

Onsite / Virtual Loop

Four rounds: 2 coding, 1 system design, 1 behavioral or domain-specific. System design is heavily weighted for senior roles.

5

Debrief & Offer

Panel debrief and decision. Compensation structure has changed post-acquisition.

Common Topics

Data Structures and AlgorithmsSystem Design (timelines, fan-out, real-time messaging)Distributed SystemsCaching StrategiesGraph Problems (social graph)Stream ProcessingSearch and RankingRate Limiting

Sample Questions

System Design

1

Design the home timeline for Twitter. How do you efficiently deliver tweets to all followers when a user posts?

2

Design a trending topics detection system that identifies trends in real time across millions of tweets.

Onsite Coding

1

Given a list of tweets with timestamps, implement a function to retrieve the most recent k tweets for a user's timeline.

2

Implement a trie-based autocomplete system for Twitter search with frequency-based ranking.

Behavioral

1

Tell me about a time you had to rebuild or significantly refactor a system under tight deadlines.

Preparation Tips

1

Twitter system design questions are classic: design a tweet timeline, trending topics, or real-time search

2

Understand the fan-out-on-write vs. fan-out-on-read trade-off — this is central to Twitter's architecture

3

Study distributed caching (Memcached, Redis) deeply — caching is critical at Twitter scale

4

Be prepared to discuss how to handle celebrity accounts with millions of followers (hot key problem)

5

Practice stream processing concepts: Kafka, real-time aggregation, and windowed computations

6

Coding questions are standard LeetCode medium difficulty; focus on clean, efficient solutions

7

The company is evolving rapidly — stay current on its engineering direction and priorities

Tech Stack

ScalaJavaPythonJavaScriptReactGraphQLApache KafkaManhattan (in-house KV store)MemcachedHadoopFinagleThrift

Related Companies

Start practicing

Practice for Your Twitter (X) Interview

Get AI-powered interview practice with questions tailored to Twitter (X)'s interview style. Free plan available for candidates.