Spotify Coding Interview Questions: 17 Tagged Problems
17 coding problems tagged Spotify — 7 easy · 8 medium · 2 hard — with solutions in 13 languages. Plus a 2-week study plan by topic.
- Problems: 17
- By difficulty: 7 easy · 8 medium · 2 hard
- Languages: JavaScript, TypeScript, Python, Java, C++, C, C#, Go, Kotlin, Swift, Rust, PHP and Ruby
- Cost: Free on every plan; sign in to run and submit
17 problems the CodeKairo catalogue tags as commonly asked in Spotify's coding rounds — 7 easy, 8 medium and 2 hard — each judged by hidden tests in 13 languages. The most common topics among them are Strings (9), Arrays (6) and Hash Table (6). The tag is the catalogue's own annotation of where a problem tends to come up — not a list published by Spotify, which CodeKairo is not affiliated with.
Spotify study plan by topic
All 17 problems tagged Spotify over 2 weeks, about 8 h 40 min of solving, grouped by technique in the order they build on each other — Hash Table, Counting, Math and Two Pointers and 10 more.
Week 1: Hash Table, Counting, Math +8
12 problems on Hash Table, Counting, Math, Two Pointers, Sliding Window, Bucket Sort, Stack, Simulation, Recursion, Quickselect and Combinatorics, easiest first within each topic.
- Two Sum Easy
- Ransom Note Easy
- Plus One Easy
- Valid Palindrome Easy
- String Compression Medium
- Longest Substring Without Repeating Characters Medium
- Top K Frequent Elements Medium
- Valid Parentheses Easy
- Fizz Buzz Easy
- Fibonacci Number Easy
- Kth Largest Element in an Array Medium
- Number of Music Playlists Hard
Week 2: Backtracking, Breadth-First Search, Union Find
5 problems on Backtracking, Breadth-First Search and Union Find, easiest first within each topic.
- Generate Parentheses Medium
- Letter Case Permutation Medium
- Word Ladder Hard
- Longest Consecutive Sequence Medium
- Number of Islands Medium
All problems tagged Spotify
Easy (7)
- Ransom Note Hash Table, String, Counting
- Fibonacci Number Math, Dynamic Programming, Recursion
- Plus One Array, Math
- Valid Palindrome String, Two Pointers
- Fizz Buzz Math, String, Simulation
- Valid Parentheses String, Stack
- Two Sum Array, Hash Table
Medium (8)
- Letter Case Permutation String, Backtracking, Bit Manipulation
- String Compression Two Pointers, String
- Generate Parentheses String, Backtracking, Dynamic Programming
- Number of Islands Array, Matrix, Depth-First Search
- Top K Frequent Elements Array, Heap, Hash Table
- Kth Largest Element in an Array Array, Heap, Quickselect
- Longest Substring Without Repeating Characters String, Sliding Window, Hash Table
- Longest Consecutive Sequence Array, Hash Table, Union Find
Hard (2)
- Number of Music Playlists Math, Dynamic Programming, Combinatorics
- Word Ladder Hash Table, String, Breadth-First Search
Topics Spotify asks most
- Strings 9 problems
- Arrays 6 problems
- Hash Table 6 problems
- Math 4 problems
- Dynamic Programming 3 problems
- Two Pointers 2 problems
- Heap 2 problems
- Backtracking 2 problems
- Breadth-First Search 2 problems
- Union Find 2 problems
- Counting 1 problem
- Sliding Window 1 problem