X’s interview process for US engineers, as X and its parent xAI describe it in 2025-26 postings, is short: a review of your CV and a statement of exceptional work, a 15-30 minute phone interview on what you have built, a coding challenge or technical interviews on practical problems, then a project deep-dive or meet and greet, with a stated aim of finishing within a week.
Some candidate reports on Glassdoor describe a longer loop: a phone screen, two coding rounds, a system design round and a hiring manager round.
Twitter interview process
- Application reviewNot applicable
- Phone interview15-30 min
- Coding challenge or technical interviewsNot published
- Project deep-dive or meet and greetNot published
X is the company formerly called Twitter. This table is the US process as X and its parent xAI describe it in their own 2025-26 job postings. Public US candidate reports since 2022 are scarce, so treat round counts as a guide.
| Round | Duration | What it tests |
|---|---|---|
| Application review | Not applicable | Your CV and a short statement of exceptional work |
| Phone interview | 15-30 min | Background, what you have built, why X |
| Coding challenge or technical interviews | Not published | Practical coding, often with a deep-dive on your approach |
| Project deep-dive or meet and greet | Not published | A past project in depth and team fit; final interviews in person on some roles |
X (Twitter) and xAI engineering hiring
X, the company formerly called Twitter, hires very few early-career engineers, and no X-branded new grad or software intern posting appeared in 2025-26. Its parent xAI posted a “Member of Technical Staff - Government - New Grad” role in Palo Alto, Los Angeles and Washington for 2024-2026 graduates, listing $165,000-$200,000 plus equity and requiring the ability to obtain a US security clearance. The only xAI 2026 internship posted was a mechanical, electrical and computer engineering role in Memphis, Tennessee. Most X engineering postings are for experienced engineers in Palo Alto; Software Engineer, Product Infrastructure asked for at least 2 years of experience.
X and xAI postings describe no online assessment. The Software Engineer, X Chat posting says the team reads your CV and a statement of exceptional work, then holds a 15-30 minute phone interview, a deep-dive coding challenge and a meet and greet, aiming to finish within one week. The xAI new grad posting lists a 15-minute phone interview, two technical interviews and a project deep-dive, with final interviews in person. Older Twitter loops with two coding rounds, system design and a hiring manager round show the style of X coding interview questions but not the current structure. None of these postings mention visa sponsorship, so ask your recruiter.
Twitter interview questions with answers
Q: Design a data structure supporting insert, delete, and getRandom in O(1).
Combine a dynamic array holding the values with a hash map from value to its index in that array. insert appends to the array and records the index. delete looks up the index, swaps the last element into that slot, updates the moved element’s index in the map, pops the array, and erases the key - that swap-with-last is what makes deletion O(1) instead of O(n). getRandom picks a uniform index into the array. Every operation is O(1) average and space is O(n); the follow-up allowing duplicates replaces the map’s value with a set of indices, which keeps the same asymptotics with more bookkeeping.
Q: Implement a hit counter that reports the number of hits in the last five minutes.
For modest traffic, keep a queue of timestamps, push on each hit, and pop from the front while the head is older than 300 seconds, then return the queue size - amortized O(1) per hit but O(n) memory in the window. For high throughput, use a circular buffer of 300 buckets, each holding a second’s timestamp and count: on a hit, index by time modulo 300 and either increment the bucket or, if its stored timestamp is stale, reset it to the current second with count one. Counting sums the buckets whose timestamps fall inside the window, which is O(300) with O(300) fixed memory regardless of traffic. Mention thread safety - the buckets need atomic increments or per-shard counters - since concurrency follow-ups are standard here.
Q: Given a list of tasks and a cooldown n, find the least number of intervals needed to execute them.
The answer is driven by the most frequent task. Let maxCount be the highest task frequency and k the number of tasks tied at that frequency. Arranging the most frequent task first creates maxCount minus 1 gaps of length n plus 1, giving (maxCount - 1) times (n + 1) plus k as a lower bound. If there are enough distinct other tasks, they fill the idle slots and the answer is simply the total number of tasks, so take the maximum of the formula and the task-list length. Counting frequencies is O(n) time and O(1) space over a fixed alphabet. If you must output the actual schedule rather than the count, use a max-heap of remaining counts plus a cooldown queue instead.
Q: How do you detect a cycle in a directed graph?
Run DFS with three colors: white for unvisited, grey for on the current recursion stack, and black for fully explored. An edge to a grey node is a back edge and proves a cycle - the union-find approach used for undirected graphs does not work here, and a plain visited set gives false positives on a diamond-shaped DAG. Time is O(V + E) with O(V) space. The iterative alternative is Kahn’s algorithm: repeatedly remove nodes of in-degree zero, and if fewer than V nodes come out, the remainder forms a cycle - which conveniently gives you a topological order as a by-product when there is none.
Q: How would you implement a thread-safe counter, and what are the trade-offs?
The simplest correct version guards the increment with a mutex, but under contention every thread serializes on one lock. An atomic integer using a compare-and-swap or fetch-and-add is faster because it avoids kernel-level blocking, yet at very high core counts all cores still contend for the same cache line, so throughput collapses from false sharing and cache-line ping-pong. The scalable answer is a striped or per-thread counter - Java’s LongAdder or a padded per-core array - where each thread increments its own cell and a read sums the cells, trading exact real-time reads for write throughput. Note that a volatile variable alone is not enough: it guarantees visibility, not atomicity of read-modify-write.
Q: Design the home timeline for a service with hundreds of millions of users.
The core choice is fanout-on-write versus fanout-on-read. Fanout-on-write pushes each post into every follower’s precomputed timeline list in a cache such as Redis, making reads a single fast range query - correct for the vast majority of accounts. It breaks for celebrity accounts with tens of millions of followers, where one post causes a write storm, so those accounts are handled with fanout-on-read: their posts are merged into the timeline at query time. The production design is hybrid, with a follower-count threshold selecting the path per author. Timelines are capped at a few hundred entries, ranking runs as a separate scoring pass over the merged candidates, and the whole thing is eventually consistent - a post appearing a few seconds late is acceptable.
Q: How would you build real-time search across billions of posts?
Use an inverted index mapping each term to a posting list of document ids, sharded by document so every shard searches its own slice in parallel and a scatter-gather aggregator merges the top-k results. Real-time freshness needs a two-tier design: a small in-memory index over the last few hours that accepts writes immediately, plus larger immutable segments built in the background and periodically merged, which is essentially how Twitter’s Earlybird worked. Index only what you must, compress posting lists with delta encoding, and store documents in reverse-chronological id order so early termination can stop once enough recent hits are found. Rank with a cheap first-pass score, then re-rank the top candidates with an expensive model, and keep a separate cache for the head of the query distribution.
Q: Design a rate limiter for a public API.
Token bucket is the standard: per API key store a token count and a last-refill timestamp, refill lazily at a fixed rate up to a burst capacity, and reject with 429 plus a Retry-After header when no token is available. It allows a controlled burst while bounding sustained rate, and it costs two fields per key. Distributed enforcement needs the check-and-decrement to be atomic, so run it as a Redis Lua script or use per-node quotas equal to the global limit divided by node count, accepting some slack in exchange for removing a network hop. Decide the failure mode deliberately - failing open keeps the API up when the limiter store is down but exposes you to abuse. Layer limits by key, by IP, and by endpoint cost so one expensive route cannot be hammered within a generous global limit.
X (Twitter) interview questions by role
These themes come from 2025 Glassdoor reports, older Twitter candidate reports and an older Twitter test on GeeksforGeeks.
| Role | Reported questions and topics |
|---|---|
| Software engineer (assessment) | Two function-only coding problems in a stub editor; strings and arrays with large inputs (up to 10^6), so linear or n log n solutions are expected. |
| Backend / platform engineer | Insert, delete and getRandom in O(1); cycle detection in a directed graph; a concurrent queue or thread-safe counter; sliding-window problems; API-design prompts drawn from real team problems. |
| Software engineer (2025 loops) | July 2025 Glassdoor report (offer accepted): phone screen, two coding rounds, one system design and a hiring manager round, prepared with LeetCode tagged questions and STAR stories. January 2025 London report: a CodeSignal test on labeling Tetris blocks. April 2025 London report: HR call, then live coding on algorithms and complexity with the head of the area, including a XOR-based problem. |
| Mid-level and senior | Home timeline with fanout-on-write vs fanout-on-read, real-time search across billions of posts, a notification pipeline and a public-API rate limiter. |
Asked across every role: clarify a deliberately vague prompt before coding, explain trade-offs out loud, and answer directly about working at high intensity with a small team.
X (Twitter) technical assessment: quick answers
X publishes no assessment pattern, and public reports on its post-2022 hiring are thin, so the numbers below are indicative.
| Question | Answer |
|---|---|
| Is there an online assessment? | Not always. Some candidates report a 60-90 minute automated coding assessment after the recruiter screen, but 2025 Glassdoor reports describe going straight from a phone screen or HR call to live coding. |
| How many questions? | Not published for X’s current loop. An older (pre-2022) Twitter test published on GeeksforGeeks had two problems. |
| Which platform is it on? | A January 2025 London report on Glassdoor names CodeSignal: a test on labeling Tetris blocks with different values, graded on how general the code was across 10 tests. The older Twitter test used a HackerRank-style editor with locked stub code that reads from stdin, so practice writing just the function. |
| Does it have negative marking? | No report describes any. It is a coding test scored on test cases. |
| How much is the cutoff? | Not published. Shortlists depend on the role and the applicant pool. |
| What do the problems cover? | Practical DSA: LRU cache, hit counter or rate limiter, task scheduler with cooldown, a mini Design Twitter feed. The older test had a string-rotation problem (minimum left rotations to reach the lexicographically smallest string, length up to 10^6) and a triangle-classification problem. |
Recruiter screen and technical assessment
The recruiter screen (15-30 minutes in the X Chat posting, 30-45 minutes in older reports) covers background, tech stack, and - candidates report - a fairly direct conversation about whether you’re comfortable with X’s long-hours, high-output culture. Some candidates then get an automated coding assessment (a January 2025 London candidate took one on CodeSignal; older reports describe 60-90 minutes), sometimes stretched into a longer, more open-ended scenario rather than a plain multiple-choice-plus-two-problems test.
Common questions
- Implement an LRU cache
- Build a hit counter / rate limiter
- Task scheduler with a cooldown period
- Design Twitter (LeetCode 355) -
postTweet,getNewsFeed,follow/unfollowwith merged recent tweets (practical mini-feed problem) - Array/string problems at medium difficulty
Technical phone screen
A single 45-60 minute live coding round with an engineer. Multiple sources note that interviewers introduce ambiguity into the prompt on purpose - they’re watching how you clarify requirements and communicate your reasoning as much as whether you land the exact right answer.
Common questions
- Sliding-window / two-pointer array problems
- Thread-safe data structure design (concurrency, race conditions)
- Graph traversal (BFS/DFS) variants
- API-design-style prompts drawn from problems the team actually faces
Virtual/onsite: coding rounds
One or two further coding rounds in the loop, similar format to the phone screen. Reports consistently describe X moving away from trick-based brain teasers toward problems that mirror real backend/platform work.
Common questions
- Design a data structure supporting insert/delete/getRandom in O(1)
- Detect a cycle in a directed graph
- Concurrent queue or thread-safe counter implementation
- Longest substring / subarray pattern problems
Virtual/onsite: system design (mid-level and up)
Reported as the most consequential round for mid-level and senior candidates: reasoning about latency, reliability, and scale at very high request volumes, using X’s own product surface as the prompt.
Common questions
- Design the home timeline / feed (fanout-on-write vs fanout-on-read)
- Design real-time tweet search across billions of posts
- Design a notification delivery pipeline (push, in-app, email)
- Design a rate limiter for a public API
Behavioral / hiring manager round
A shorter round (30-45 min) that closes the loop: ownership, how you operate with limited resources, and direct questions about pace and expectations. This is where the post-acquisition culture shift is most explicit in candidate reports - be ready to speak candidly to working at high intensity rather than treating it as a throwaway question.
Common questions
- Tell me about a time you shipped something with incomplete information
- Describe a decision you made under a tight deadline with limited headcount
- How do you handle direct or blunt feedback on your work?
- Why X, specifically now?
Sample STAR answers for these are on the X behavioral interview questions page.
The post-acquisition intensity bar
This is the one genuinely distinctive thing about interviewing at X today: the company is dramatically smaller than pre-2022 Twitter (headcount fell an estimated ~80% during the 2022-2023 layoffs; Wikipedia’s estimate is about 1,500 employees in August 2023), and Musk’s initial “extremely hardcore” mandate - long hours at high intensity - has been echoed in multiple 2024-2025 reports about continued long-hours norms and stock/equity tied to performance. The March 2025 all-stock deal in which xAI acquired X (valuing X at $33 billion and xAI at $80 billion) folded X’s engineering org into an AI-first roadmap, and on 2 February 2026 SpaceX acquired xAI, so X now sits inside SpaceX’s AI subsidiary. Practically, this means interviewers are evaluating pace and resilience as directly as technical skill, and candidates who can’t speak concretely to thriving in a lean, fast-moving team tend to get filtered here rather than in the coding rounds.
How to prepare for Twitter (X) interviews
- Write the statement of exceptional work first. X Chat and xAI postings read it before the phone interview, and the project deep-dive comes back to it.
- Practice practical coding, not puzzles. LRU cache, hit counter, rate limiter, task scheduler with cooldown and Design Twitter (LeetCode 355), with a thread-safety follow-up on each.
- Read the reports. The X interview experience page has the posting-by-posting steps and the 2025 Glassdoor loops.
- Answer the pace question directly. Recruiters and hiring managers ask whether you are comfortable with long hours in a small team; a vague answer reads as a no.
A four-week X (Twitter) prep plan
A four-week plan for after you apply. X says it aims to finish its process within a week, so do weeks 1 and 2 before you apply if you can.
- Week 1: Write your statement of exceptional work: two or three things you built, each with a number (users, latency, cost). Practice explaining each in two minutes, since the project deep-dive will go further.
- Week 2: Practical coding, timed, in your strongest language: LRU cache, hit counter, rate limiter, task scheduler with cooldown and Design Twitter (LeetCode 355). Ask whether each structure must be thread-safe.
- Week 3: Experienced candidates: home timeline fanout, real-time search, a notification pipeline and an API rate limiter. New grads: go deep on one project instead, down to the data model and the bugs you fixed.
- Week 4: Mock interviews with deliberately vague prompts so you practice clarifying first. Prepare direct answers on pace, ownership and “Why X, now?”.
10-day version: Days 1-2 statement of exceptional work, days 3-6 timed practical coding, days 7-8 design or project deep-dive, day 9 behavioral answers out loud, day 10 one full mock.
X (Twitter) US pay
X Corp.’s Software Engineer, Product Infrastructure posting in Palo Alto, which asked for at least 2 years of experience and was removed in August 2025, listed a base salary range of $127,000-$297,000. An xAI posting for Software Engineer, X Chat in Palo Alto, removed in February 2026, listed $180,000-$440,000 plus equity. xAI’s Member of Technical Staff - Government - New Grad posting listed $165,000-$200,000 plus equity.
Twitter India: past campus hiring, online test and pay
X has no India campus hiring today. Twitter once had a Bengaluru engineering team, and older India reports describe a 60-90 minute online test of 2-4 coding problems, a 7.0 CGPA cutoff where one was printed, and a loop of two technical rounds, a managerial round and HR. Since the 2022-2023 layoffs and the 2025 xAI merger, the few India roles reported are experienced AI/ML, infra and backend positions filled off-campus.
Does X hire freshers from Indian campuses?
Rarely. India engineering hiring shrank sharply after 2022, and most reported India roles since the 2025 xAI merger are experienced AI/ML, infra and backend positions filled off-campus.
Twitter India pay
Candidate-reported fresher/early-career packages for Twitter often cite ₹35-45 LPA SDE band, mostly from before 2022.
Frequently asked questions about X (Twitter) interviews
Does X (Twitter) hire new grads?
Rarely. No X-branded new grad or software intern posting appeared in 2025-26. X’s parent xAI posted a Member of Technical Staff - Government - New Grad role for 2024-2026 graduates with a 15-minute phone interview, two technical interviews and a project deep-dive, aiming to finish within one week. Most X engineering roles are for experienced engineers in Palo Alto, where the X Chat posting describes a 15-30 minute phone interview, a coding challenge and a meet and greet.
What is the X (Twitter) interview process in 2025-2026?
X’s loop is leaner than pre-2022 Twitter and reportedly runs: 1. Recruiter screen (30-45 min) - background, tech stack, and a direct check on fit with X’s long-hours, high-intensity culture. 2. Technical assessment (60-90 min) - an automated coding challenge, sometimes a longer take-home-style scenario. 3. Technical phone screen (45-60 min) - live coding with an engineer, often deliberately ambiguous prompts. 4. Virtual/onsite loop (2-4 rounds) - coding, system design (mid/senior+), and a behavioral round. Public reporting on exact round counts is thin and inconsistent post-acquisition, so treat this as a directional map, not a fixed script.
What questions are asked in X (Twitter) interviews?
Coding rounds lean on practical, job-relevant problems over trick puzzles: LRU cache, hit counter / rate limiter, task scheduler with cooldown, and concurrency-flavoured problems (thread-safe structures, race conditions). System design centers on X’s own domain: home timeline / fanout, real-time search (historically built on Earlybird), notification pipelines, and rate limiting at platform scale. Behavioral questions probe ownership, speed of execution, and comfort with a high-pressure, resource-constrained environment.
How many rounds are there in the X (Twitter) interview?
Most 2025-2026 reports describe 3-6 total touchpoints: a recruiter screen, a technical assessment, a technical phone screen, and a virtual/onsite loop of 2-4 rounds (coding, system design, behavioral). Exact counts vary by team and level, and public data since the 2022 acquisition and 2025 merger with xAI is sparser than for most FAANG peers - confirm your own loop with the recruiter rather than assuming a fixed number.
What is X’s engineering culture like after the Musk acquisition and xAI merger?
Widely and consistently reported as high-intensity: Musk’s late-2022 ‘extremely hardcore’ memo set an expectation of long hours at high output, and multiple 2024-2025 reports describe continued long-hours norms and performance-linked equity. In March 2025 xAI acquired X in an all-stock deal (X valued at $33 billion, xAI at $80 billion), and in February 2026 SpaceX acquired xAI, pushing engineering priorities further toward AI-integrated product work. Interviewers reportedly screen directly for comfort with this pace during the recruiter screen and behavioral round.
How should I prepare for X (Twitter) interviews?
Drill practical coding patterns (LRU cache, rate limiters, scheduler/cooldown problems) rather than obscure puzzles, be ready to reason about concurrency and thread safety, and prepare one system design narrative around a large-scale feed/timeline or search system since that’s the most consistently reported design topic. For behavioral rounds, prepare concrete examples of moving fast with limited resources and owning outcomes end-to-end - and be candid that you’re aware of, and fine with, X’s demanding pace.
Does the X (Twitter) coding assessment have negative marking?
No report describes negative marking. The assessment is a 60-90 minute coding test scored on test cases, sometimes replaced by a longer practical scenario.
Does X (Twitter) hire freshers from Indian campuses?
Rarely. India engineering hiring shrank sharply after 2022, and most reported India roles since the 2025 xAI merger are experienced AI/ML, infra and backend positions filled off-campus rather than through campus drives.
Does X (Twitter) still hire engineers in India?
Uncertain and much smaller than pre-2022. Twitter’s Bengaluru engineering presence was heavily cut during the 2022-2023 layoffs (headcount fell roughly 80% company-wide). Since the March 2025 xAI-X merger (and SpaceX’s acquisition of xAI in February 2026), the few reported India engineering roles skew toward AI/ML, infra, and backend work rather than classic mass campus SDE drives - so don’t assume a traditional India campus-hiring pipeline exists for X specifically.
Old Twitter vs X today
Interview reports from before late 2022 describe Twitter, Inc.: a larger company with a Bengaluru engineering presence and a conventional big-tech loop. Since the acquisition, X runs a leaner, less standardized loop with more practical coding, a direct conversation about pace in the recruiter and hiring-manager rounds, and, since March 2025, hiring under xAI, which SpaceX acquired in February 2026.
Use older Twitter interview experiences for the style of coding problems, but not for the round structure, team size or India hiring volume.
Sources
Assessment quick answers and role-wise questions draw on 2025 Glassdoor software engineer interview reviews for X and an older Twitter coding test published on GeeksforGeeks. Company-structure facts draw on Wikipedia’s X Corp. article and a February 2026 Trending Topics report on xAI’s post-SpaceX-merger restructuring. The US section draws on X Corp.’s Software Engineer, Product Infrastructure posting, xAI’s Software Engineer, X Chat posting, its Member of Technical Staff - Government - New Grad posting and its Summer 2026 engineering internship posting in Memphis.