Twitter Coding Interview Questions
We track 48 coding questions asked at Twitter, tagged with the algorithms and concepts they test. The most common: Array, Hash Table, String, Design, Dynamic Programming.
Browse all 48 Twitter questions →Concept mix
Each question's weight is split evenly across its concepts, so the shares sum to 100%.
- String12.3%
- Array12.2%
- Database9.3%
- Hash Table9.1%
- Design4.7%
- Linked List4.7%
- Dynamic Programming4.5%
- Math4.5%
- Heap (Priority Queue)3.7%
- Recursion3.7%
- Other (31)31.5%
How many questions involve each concept
Share of all 48 tracked Twitter questions that touch each concept. Questions usually involve several, so these overlap.
- Array33.3%
- Hash Table29.2%
- String27.1%
- Design16.7%
- Dynamic Programming12.5%
- Heap (Priority Queue)12.5%
- Linked List12.5%
- Math12.5%
- Database8.3%
- Recursion8.3%
- Sorting8.3%
- Stack8.3%
Where Twitter differs from the average company
Concept weight at Twitter relative to the average across all companies we track. Green means Twitter leans on it harder than most.
- Doubly-Linked List4.0×
- Design3.6×
- Database3.4×
- Recursion3.4×
- Sorting0.59×
- Greedy0.57×
- Two Pointers0.33×
- Binary Search0.30×
Twitter specialties
Concepts that show up at Twitter but are rarely asked elsewhere. They are easy to get blindsided by.
Difficulty mix
Level split of the 48 tracked Twitter questions.
- Junior17% (8)
- Mid/Senior58% (28)
- Staff25% (12)
Every concept in Twitter interviews
| Concept | Questions | % of questions | Share of mix |
|---|---|---|---|
| Array | 16 | 33.3% | 12.2% |
| Hash Table | 14 | 29.2% | 9.1% |
| String | 13 | 27.1% | 12.3% |
| Design | 8 | 16.7% | 4.7% |
| Dynamic Programming | 6 | 12.5% | 4.5% |
| Heap (Priority Queue) | 6 | 12.5% | 3.7% |
| Linked List | 6 | 12.5% | 4.7% |
| Math | 6 | 12.5% | 4.5% |
| Database | 4 | 8.3% | 9.3% |
| Recursion | 4 | 8.3% | 3.7% |
| Sorting | 4 | 8.3% | 2.3% |
| Stack | 4 | 8.3% | 2.8% |
| Breadth-First Search | 3 | 6.2% | 1.8% |
| Depth-First Search | 3 | 6.2% | 1.4% |
| Matrix | 3 | 6.2% | 1.5% |
| Simulation | 3 | 6.2% | 2.3% |
| Binary Search | 2 | 4.2% | 0.9% |
| Divide and Conquer | 2 | 4.2% | 0.9% |
| Doubly-Linked List | 2 | 4.2% | 1.2% |
| Greedy | 2 | 4.2% | 1.7% |
| Ordered Set | 2 | 4.2% | 0.7% |
| Queue | 2 | 4.2% | 1.2% |
| Tree | 2 | 4.2% | 1.0% |
| Trie | 2 | 4.2% | 0.9% |
| Two Pointers | 2 | 4.2% | 1.2% |
| Backtracking | 1 | 2.1% | 0.3% |
| Binary Indexed Tree | 1 | 2.1% | 0.3% |
| Binary Search Tree | 1 | 2.1% | 0.6% |
| Binary Tree | 1 | 2.1% | 0.6% |
| Bit Manipulation | 1 | 2.1% | 2.3% |
| Counting | 1 | 2.1% | 0.8% |
| Enumeration | 1 | 2.1% | 0.8% |
| Geometry | 1 | 2.1% | 0.6% |
| Iterator | 1 | 2.1% | 0.4% |
| Sweep Line | 1 | 2.1% | 0.3% |
| Memoization | 1 | 2.1% | 0.3% |
| Merge Sort | 1 | 2.1% | 0.6% |
| Monotonic Stack | 1 | 2.1% | 0.5% |
| Randomized | 1 | 2.1% | 0.5% |
| Segment Tree | 1 | 2.1% | 0.3% |
| Union-Find | 1 | 2.1% | 0.5% |
Practice a Twitter interview
Take a realistic AI-led mock interview with questions Twitter actually asks, with live voice and real feedback.
Start a mock interviewYour first interview is free · no credit card required