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

Backend Engineer Coding easy

Implement a function to parse a tweet string and extract all unique hashtags and user mentions, returning them in the order they appeared.

#String Manipulation #Regex #Hash Set
Backend Engineer Coding medium

Given a stream of tweets, write an algorithm to find the top K trending hashtags over the last 1 hour.

#Heap #Hash Map #Sliding Window
Backend Engineer Coding medium

Given a list of user connections (follower/following), write a function to find the shortest connection path between two users (Degrees of Separation).

#Graph #BFS #Bidirectional BFS
Backend Engineer Coding medium

Given an array of intervals representing active ad campaigns, merge all overlapping intervals to find the total continuous time ads are running.

#Array #Sorting #Intervals
Backend Engineer Coding hard

Write an algorithm to serialize and deserialize a tree of threaded replies (N-ary tree) to a string and back.

#Tree #DFS #Serialization
Backend Engineer Coding medium

Given a list of tweets with timestamps, find the maximum number of tweets published within any 5-minute sliding window.

#Sliding Window #Two Pointers #Array
Backend Engineer Coding medium

Write a function to detect if there is a cycle in a retweet chain (represented as a directed graph).

#Graph #DFS #Cycle Detection
Backend Engineer Coding easy

Given two arrays representing the followers of User A and User B, write a function to return their mutual followers. Optimize for large arrays.

#Array #Hash Set #Two Pointers
Backend Engineer Coding easy

Given a string containing a tweet, check if it is a palindrome, ignoring spaces, punctuation, and casing.

#String #Two Pointers

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