Spotify Coding Interview Questions
We track 13 coding questions asked at Spotify, tagged with the algorithms and concepts they test. The most common: Hash Table, String, Array, Heap (Priority Queue), Sliding Window.
Browse all 13 Spotify questions →Concept mix
Each question's weight is split evenly across its concepts, so the shares sum to 100%.
- String16.7%
- Hash Table14.2%
- Array9.5%
- Two Pointers7.0%
- Heap (Priority Queue)6.5%
- Sliding Window5.8%
- Stack5.0%
- Sorting4.0%
- Counting3.3%
- Binary Tree2.5%
- Other (11)25.5%
How many questions involve each concept
Share of all 13 tracked Spotify questions that touch each concept. Questions usually involve several, so these overlap.
- Hash Table30.8%
- String30.8%
- Array23.1%
- Heap (Priority Queue)23.1%
- Sliding Window15.4%
- Sorting15.4%
- Two Pointers15.4%
- Binary Tree7.7%
- Breadth-First Search7.7%
- Counting7.7%
- Data Stream7.7%
- Depth-First Search7.7%
Where Spotify differs from the average company
Concept weight at Spotify relative to the average across all companies we track. Green means Spotify leans on it harder than most.
- Heap (Priority Queue)4.3×
- Sliding Window3.9×
- Hash Table2.1×
- Two Pointers1.9×
- Array0.49×
Spotify specialties
Concepts that show up at Spotify but are rarely asked elsewhere. They are easy to get blindsided by.
Difficulty mix
Level split of the 13 tracked Spotify questions.
- Junior54% (7)
- Mid/Senior31% (4)
- Staff15% (2)
Every concept in Spotify interviews
| Concept | Questions | % of questions | Share of mix |
|---|---|---|---|
| Hash Table | 4 | 30.8% | 14.2% |
| String | 4 | 30.8% | 16.7% |
| Array | 3 | 23.1% | 9.5% |
| Heap (Priority Queue) | 3 | 23.1% | 6.5% |
| Sliding Window | 2 | 15.4% | 5.8% |
| Sorting | 2 | 15.4% | 4.0% |
| Two Pointers | 2 | 15.4% | 7.0% |
| Binary Tree | 1 | 7.7% | 2.5% |
| Breadth-First Search | 1 | 7.7% | 2.5% |
| Counting | 1 | 7.7% | 3.3% |
| Data Stream | 1 | 7.7% | 2.0% |
| Depth-First Search | 1 | 7.7% | 2.5% |
| Design | 1 | 7.7% | 2.0% |
| Divide and Conquer | 1 | 7.7% | 2.0% |
| Dynamic Programming | 1 | 7.7% | 2.5% |
| Math | 1 | 7.7% | 2.5% |
| Memoization | 1 | 7.7% | 2.5% |
| Quickselect | 1 | 7.7% | 2.0% |
| Recursion | 1 | 7.7% | 2.5% |
| Stack | 1 | 7.7% | 5.0% |
| Tree | 1 | 7.7% | 2.5% |
Practice a Spotify interview
Take a realistic AI-led mock interview with questions Spotify actually asks, with live voice and real feedback.
Start a mock interviewYour first interview is free · no credit card required