Twitter interview prep

See what Twitter asks, then get a plan for it

Real Twitter frontend questions and candidate reports, turned into a week-by-week prep plan.

~2 min · free preview

Company prep

Twitter Front End Interview Guide

The Twitter frontend interview process, real questions, and candidate reports.

Questions
167
Reports
Solved
—

Verified by FrontendLead

Practice questions167

From the community

Interview reports

Twitter frontend interviews favor practical UI work: an accessible game UI in plain JavaScript, practical data-processing algorithms, and building React UIs from screenshots.

Twitter is now called X, and since the merger with xAI its hiring runs through a much leaner, engineer-led process. This guide is built from 3 Twitter interview reports shared by FrontendLead members between November 2023 and May 2024, plus questions members have tagged with Twitter and the interview process xAI publishes on its official careers page and recent frontend job postings. Where the old and new processes differ, the guide says so.

The single biggest pattern: Twitter tests whether you can ship a complete, accessible UI on your own. The online assessment asked for a complete, keyboard-accessible game UI, and recent frontend postings describe a React app round plus a screenshot-to-HTML/CSS round. Practice building small, finished products end to end, not just isolated functions.

By Shivam Bhalla · Updated

01

Twitter frontend interview at a glance

Timeline
Fast: members heard back the next day; xAI aims to finish the main process within a week
Process
Application with a statement of exceptional work, short screen, 2 to 4 technical interviews
Screening
About 15 minutes with an engineer, not a recruiter, in the current process
Coding language
JavaScript or TypeScript; current frontend postings specify React
UI rounds
Build a small React app; implement a UI from a screenshot in HTML and CSS
Signature topic
Complete, accessible UI: a small game with keyboard support and game states
Algorithms
Practical problems on interval and event data
Format
Video interviews; in-office work is the norm after you join
02

Twitter frontend interview process

The stages below combine what members reported with the four steps xAI lists on its official careers page: application, screening interview, technical interviews, and offer. Team and role still shape the details, so confirm your exact loop when you are invited.

  1. 1

    Application and statement of exceptional work

    Days to a few weeks

    xAI’s careers page says it generally does not use recruiters for assessments; technical team members read your CV and a written statement of exceptional work. Treat the statement as a short technical case study: one project, what made it hard, the decisions you personally made, and a measurable result. Interviewers can come back to it later.

    In the earlier process, members were contacted by recruiters and, in one case, matched to a specific team before any technical round.

  2. 2

    Short technical screen

    About 15 minutes

    A team member asks about your background and a few basic technical questions. Answer concisely and concretely. Have a 30-second summary of your strongest frontend project ready, with your specific contribution and outcome.

  3. 3

    Online assessment or phone screen

    One coding session

    Members reported two formats. One was an online assessment to build a small browser game with HTML, CSS, and JavaScript, including accessibility requirements. The other was a live technical phone screen with an algorithm problem: an interval problem for one new grad, and an event-aggregation problem for another. The exact prompts are in the members-only sections below. One member got positive feedback the next day.

  4. 4

    Technical interviews

    Two or more 45-minute sessions

    Recent xAI frontend job postings describe two technical interviews after the screen: a coding interview in TypeScript where you write a small React app, and an HTML and CSS interview where you implement a UI from a screenshot. Some postings also mention Tailwind. All interviews in those postings run over Google Meet.

  5. 5

    Manager or team conversation

    About 30 minutes

    A member who passed the phone screen was scheduled for a 30-minute session with the hiring manager. Current postings describe a short final conversation with a senior engineer or the team. Expect questions on your past work, how fast you ship, and why you want this team.

03

How hiring at Twitter has changed

Most public advice about Twitter interviews describes the company before 2023, with long onsite loops and pairs of interviewers in each round. Member reports and xAI’s published process point to a shorter, more practical loop today.

Aspect Earlier Twitter loops Current process
Who screens you Recruiter, then an engineer Technical team members review applications and run the first screen
Application Resume Resume plus a statement of exceptional work
Coding Algorithm rounds and a UI assessment Practical rounds: a React app and a screenshot-to-UI build
Length Several weeks with a multi-round onsite xAI aims to complete the main process within about one week
Behavioral Dedicated behavioral and manager rounds Folded into the screen, project discussion, and final conversation

Because the company has changed so quickly, treat any single description, including this one, as a starting point. Ask the person who schedules your first interview exactly what each round covers.

04

Coding rounds: questions Twitter candidates were asked

The first three prompts come from member reports. The rest match the round formats described in current frontend postings and the questions members have tagged with Twitter.

Accessible Tic Tac Toe in vanilla JavaScript

Online assessment

Build the full game with HTML, CSS, and JavaScript. Requirements included showing who won, lost, or tied, a New Game button, full keyboard operation for everything a mouse can do, and a preview of the current player’s mark when hovering an empty square. The member passed this stage, so a complete, polished build is the bar.

Practice: Tic Tac Toe.

Insert an interval

New grad, phone screen

Given a sorted list of non-overlapping intervals, insert a new one and merge any overlaps. Walk the list in three phases: intervals that end before the new one, intervals that overlap it (merge by taking the min start and max end), and intervals after it. Test touching endpoints and an empty list.

Practice: Insert Busy Block and Schedule Conflict Finder.

Track statistics per user session

New grad, phone screen

The member described this as a common question: group events by user, split them into sessions, and compute statistics for each session. Clarify the session rule first, usually a gap of inactivity. Then sort each user’s events by timestamp and start a new session when the gap exceeds the threshold. The member’s bug was a misplaced bracket, so write small helper functions and test them as you go.

Practice: Gym Sessions.

Generalize the board to K in a row

Likely follow-up

After a working 3 by 3 game, expect “make it N by N with K in a row.” Check only the four directions through the last move instead of scanning the whole board, which keeps each move O(K).

Practice: K-in-a-Row Game.

Small React app in TypeScript

Technical interview

Current postings describe writing a small React app in TypeScript. A Twitter-flavored version is a like button with optimistic updates: update the count immediately, send the request, and roll back with a message if it fails. Type your props and state, and keep the component split simple.

Practice: Optimistic Upvote Button.

Implement a UI from a screenshot

HTML and CSS interview

You get a screenshot and rebuild it. A post card is a natural fit: avatar, name and handle, text, media, and an action row. Use semantic elements, Flexbox for the rows, and spacing that matches the image. If Tailwind is allowed, know its spacing and layout utilities without looking them up.

Practice: Microblog Post Card.

05

Deep dive: building an accessible Tic Tac Toe

Accessibility was an explicit requirement in the one Twitter UI assessment members reported, and it’s where many otherwise working solutions lose points. The fastest route is to let native elements do the work: use a <button> for each square, so Tab, Enter, and Space work for free, and announce game state through a live region.

const LINES = [
  [0, 1, 2], [3, 4, 5], [6, 7, 8],
  [0, 3, 6], [1, 4, 7], [2, 5, 8],
  [0, 4, 8], [2, 4, 6],
];
const board = document.querySelector("#board");
const status = document.querySelector("#status"); // aria-live="polite"
let cells, player, over;

function newGame() {
  cells = Array(9).fill(null);
  player = "X";
  over = false;
  board.replaceChildren(
    ...cells.map((_, i) => {
      const btn = document.createElement("button");
      btn.type = "button";
      btn.dataset.index = String(i);
      btn.setAttribute("aria-label", `Square ${i + 1}, empty`);
      return btn;
    })
  );
  render(`Player ${player}'s turn`);
}

function render(message) {
  board.dataset.player = player;
  status.textContent = message;
}

board.addEventListener("click", (event) => {
  const btn = event.target.closest("button");
  const i = Number(btn?.dataset.index);
  if (!btn || over || cells[i]) return;

  cells[i] = player;
  btn.textContent = player;
  btn.setAttribute("aria-label", `Square ${i + 1}, ${player}`);

  if (LINES.some((line) => line.every((j) => cells[j] === player))) {
    over = true;
    render(`Player ${player} wins`);
  } else if (cells.every(Boolean)) {
    over = true;
    render("It's a tie");
  } else {
    player = player === "X" ? "O" : "X";
    render(`Player ${player}'s turn`);
  }
});

document.querySelector("#new-game").addEventListener("click", newGame);
newGame();

A few details interviewers notice:

  • Hover preview without JavaScript. Because the board carries data-player, CSS such as #board[data-player="X"] button:empty:hover::after { content: "X"; } shows a faded mark. Add :focus-visible to the same selector so keyboard users get the preview too.
  • One delegated listener. A single click handler on the board survives a New Game reset and avoids nine separate listeners.
  • Announced results. The status element uses aria-live="polite", so screen readers hear whose turn it is and who won.
  • Optional arrow keys. If you have time, add a roving tabindex so arrow keys move between squares, and mention it even if you don’t build it.
06

Twitter frontend system design questions

Members didn’t report a dedicated frontend system design round, and current postings for frontend roles focus on hands-on coding. Senior candidates should still prepare, because design questions come up in project discussions. A Twitter frontend engineer once told Business Insider that architecture interviews there asked candidates to talk through building a messaging system or a complex form, with a focus on separating concerns and keeping stored data fresh. These are the designs to know.

Home timeline

Most likely

Cursor-based pagination, list virtualization for long sessions, a “new posts” banner instead of shifting content under the reader, media lazy loading, and caching the timeline so the back button restores scroll position.

Study: Design Facebook Newsfeed.

Post composer with mentions and hashtags

Editor design

Detect the @ or # trigger at the caret, fetch suggestions with debouncing, insert a token without breaking the text, count characters the way the server does, and save drafts.

Study: Design Mentions and Hashtags.

Direct messages

Real-time

Conversation list and thread views, WebSocket delivery with reconnection, optimistic sends with retry, read receipts, and how cached messages are invalidated when another device reads them.

Study: Design Chat App.

Notifications

Real-time

Grouping (“12 people liked your post”), unread counts that stay in sync across tabs, push vs polling, and batching bursts when a post goes viral.

Study: Design a Notification Center.

07

Behavioral and project discussion at Twitter

There’s little evidence of a standalone behavioral round in the current process. Instead, your judgment and ownership are assessed through the statement of exceptional work, the screen, and the final conversation. Prepare for these:

  • Your most exceptional project. Explain what made it hard, which decisions were yours, and the measured result. Expect follow-up questions several levels deep.
  • Speed of execution. A time you shipped something important quickly, and what you cut to get there.
  • Why this team. Tie your answer to a specific product surface you use and would improve.

Keep answers short and concrete. Vague, team-level claims (“we improved performance”) are weaker than personal, measured ones (“I cut the timeline’s first render from 2.1 to 0.9 seconds by streaming the first page”).

08

How to prepare for the Twitter frontend interview

Because the process is short, each round carries more weight. Use this two-week plan, which focuses on finished, accessible UI and a few practical algorithms.

Days Focus Practice
1 Statement of exceptional work Write a one-page case study of your best project and rehearse the follow-ups
2 to 4 Accessible vanilla UI Tic Tac Toe with keyboard support, then K-in-a-Row Game
5 to 6 Practical algorithms Insert Busy Block and Gym Sessions
7 to 9 React and TypeScript Optimistic Upvote Button and Debounce I
10 to 11 Screenshot to UI Microblog Post Card, timed at 45 minutes
12 to 13 Design Newsfeed and Mentions and Hashtags
14 Mock One React build and one screenshot build, back to back

For more practice, browse the coding questions library or use the study plans to build a longer schedule.

09

Twitter frontend interview FAQ

How long is the Twitter frontend interview process?

It’s short. Members heard back within a day of a phone screen, and xAI says on its job postings that it aims to finish the main interview process within about a week. Scheduling and application review can add time before that.

Does Twitter ask LeetCode questions for frontend roles?

Sometimes, and they tend to be practical. Members reported practical problems on intervals and event data. Current frontend postings focus on building a React app and implementing a UI from a screenshot instead.

Can I use React in Twitter frontend interviews?

Yes. Current frontend postings ask for a small React app in TypeScript. The online assessment members reported, however, required plain HTML, CSS, and JavaScript, so practice both.

What is the statement of exceptional work?

A written description of your most impressive technical work that you submit with your CV. Engineers read it before any interview, so make it specific: the problem, the constraints, your decisions, and a measurable result.

Is accessibility tested in Twitter frontend interviews?

Yes. The UI assessment members reported explicitly required every mouse action to work from the keyboard. Use native buttons, visible focus styles, and live regions for status updates.

Does Twitter have a frontend system design round?

Members didn’t report one, and current frontend postings list coding rounds only. Senior candidates should still prepare a timeline or messaging design, because design questions come up when you discuss past projects.