0 day streak

Spotify coding interview questions

Product Global

Ranked by how often candidates report them. Each opens in the editor with hidden tests, an animated walkthrough and solutions in four languages; a question you solve once counts for every company that asks it.

0%ready
ProgressTitleDifficultyTopicHow often hereAlso asked atNext step
Moving Average from Data StreamQueue / Circular Buffer Easy Design Data Structures Coinbase Solve
Longest Substring Without Repeating CharactersSliding Window · Variable Medium Arrays & Hashing Google, Amazon, Microsoft +50 Solve
Two SumTwo Sum Easy Arrays & Hashing Google, Amazon, Microsoft +46 Solve
Valid ParenthesesStack Basics Easy Stack Google, Microsoft, Meta +39 Solve
Kth Largest Element in an ArrayTop K / Kth Largest / Smallest Medium Heaps Meta, Apple, Netflix +14 Solve
Find Median from Data StreamAdvanced Hard Heaps Google, Amazon, Apple +14 Solve
Fibonacci Number1D DP Easy Dynamic Programming Intel, Deloitte, Barclays +7 Solve
Valid PalindromeTwo Pointer Easy Arrays & Hashing Microsoft, Apple, Bloomberg +7 Solve
Maximum Depth of Binary TreeRecursion Easy Trees & BST LinkedIn, Wipro Solve
Valid AnagramHashing Easy Arrays & Hashing Netflix, Databricks, Bloomberg +13 Solve
Walls and GatesMulti source BFS Medium Graphs DoorDash, Zomato Solve
Longest Consecutive SequenceHash Set Lookup Medium Arrays & Hashing Google, Bloomberg, Tesla +17 Solve
LRU CacheLinked Lists Medium Design Data Structures Google, Amazon, Microsoft +49 Solve
Number of IslandsConnected Components Medium Graphs Google, Amazon, Microsoft +41 Solve
Top K Frequent ElementsComposite comparator Medium Heaps Google, Amazon, Apple +16 Solve
Generate ParenthesesPick / Not-Pick Medium Recursion & Backtracking Google, Microsoft, Bloomberg +13 Solve
String CompressionTwo Pointer Medium Arrays & Hashing Microsoft, Stripe, Nvidia +10 Solve
Word LadderBFS for shortest path Hard Graphs Google, Amazon, Microsoft +13 Solve
Reverse Linked ListFront Middle Back Pointer Easy Linked List Microsoft, Apple, Bloomberg +17 Solve
Plus OneRight to Left Traversal Easy Arrays & Hashing Intuit, Capgemini Solve
Fizz BuzzSimulation Easy Arrays & Hashing Nvidia, Cisco, IBM Solve
Design Search Autocomplete SystemBasics Hard Tries Google, Netflix, Pinterest +1 Solve
Max StackStack Hard Design Data Structures LinkedIn, Nutanix, Salesforce +1 Solve
Minimum Window SubstringSliding Window · Hash Map Hard Arrays & Hashing Google, Meta, Apple +13 Solve
Remove All Adjacent Duplicates in String IIStack Basics Medium Stack Amazon, Goldman Sachs, Salesforce +2 Solve
Step-By-Step Directions From a Binary Tree Node to AnotherLCA Medium Trees & BST Databricks, Snowflake Solve
Design Parking SystemHash Map + Array Easy Design Data Structures Tesla Solve
Palindrome Linked ListFront Middle Back Pointer Easy Linked List Meta, Morgan Stanley, Intel +1 Solve
Contains DuplicateHash Set Lookup Easy Arrays & Hashing Netflix, Airbnb, Palantir +3 Solve
Also reported, being added to AlgoRung (6)

Sliding Window Median · Analyze User Website Visit Pattern · Ransom Note · Letter Case Permutation · Lowest Common Ancestor of a Binary Tree III · Minimum Moves to Reach Target Score

Questions people ask

What coding questions does Spotify ask most?

Moving Average from Data Stream, Longest Substring Without Repeating Characters, Two Sum, Valid Parentheses, Kth Largest Element in an Array, Find Median from Data Stream, Fibonacci Number, Valid Palindrome.

Which topics come up in Spotify coding rounds?

strings, hash maps, sliding window, heaps, graphs, trees.

How hard are Spotify coding questions?

Of the reported questions, 13 are easy, 11 medium and 5 hard. A 45 to 60 minute live interview where you solve one or two data-structures-and-algorithms problems while explaining your thinking. Interviewers score problem solving, code quality, testing and communication.