Spotify LeetCode Questions
14 questions all-time · 7 easy · 3 medium · 4 hard
| # | Problem | Difficulty | Frequency | Acceptance |
|---|---|---|---|---|
| 1 | Moving Average from Data Stream Array, Design, Queue, Data Stream | Easy | 100 | 0.8% |
| 2 | Longest Substring Without Repeating Characters Hash Table, String, Sliding Window | Medium | 84 | 0.4% |
| 3 | Analyze User Website Visit Pattern Array, Hash Table, String, Sorting | Medium | 84 | 0.4% |
| 4 | Kth Largest Element in an Array Array, Divide and Conquer, Sorting, Heap (Priority Queue), Quickselect | Medium | 84 | 0.7% |
| 5 | Leetcodify Friends Recommendations Database | Hard | 81 | 0.3% |
| 6 | Leetcodify Similar Friends Database | Hard | 81 | 0.4% |
| 7 | Two Sum Array, Hash Table | Easy | 76 | 0.6% |
| 8 | Valid Parentheses String, Stack | Easy | 76 | 0.4% |
| 9 | Sliding Window Median Array, Hash Table, Sliding Window, Heap (Priority Queue) | Hard | 67 | 0.4% |
| 10 | Ransom Note Hash Table, String, Counting | Easy | 57 | 0.7% |
| 11 | Fibonacci Number Math, Dynamic Programming, Recursion, Memoization | Easy | 57 | 0.7% |
| 12 | Find Median from Data Stream Two Pointers, Design, Sorting, Heap (Priority Queue), Data Stream | Hard | 57 | 0.5% |
| 13 | Maximum Depth of Binary Tree Tree, Depth-First Search, Breadth-First Search, Binary Tree | Easy | 49 | 0.8% |
| 14 | Valid Palindrome Two Pointers, String | Easy | 49 | 0.5% |
How to read this list
The tabs at the top split the questions by how recently people said they were asked in interviews. "Last 30 Days" is the past month, "Last 3 Months" is the past quarter, and so on. "All Time" is every question on record for this company.
Frequency is a score from 0 to 100 for how often a question showed up in that time window. A higher number means it came up more often, so the list starts with the most common questions first. Acceptance is the share of submissions that pass on LeetCode. Click any question to open it on LeetCode.