InterviewKata
Interview preparation

Netflix interview problems, by pattern

All 29 problems from Netflix's all-time LeetCode list (5 Easy, 19 Medium, 5 Hard), grouped by the pattern that solves them. 27 are solved on this site: open one to see which pattern to choose and why, the approach, the code with a line-by-line explanation, and a player that steps through the code on LeetCode's own example. Easy warm-ups and SQL/JavaScript problems link to LeetCode.

On the pattern pages these problems carry a Netflix badge. Frequency is LeetCode's relative score for this list (100 = asked most often). Read a pattern page first, then work through its group here from the most to the least frequent problem.

A 6-month plan

About 5–6 problems on 5 days a week. Each month: read the pattern page, solve its worked examples without looking, then this list. Re-solve anything you needed a hint for one week later.

WhenFocusPatterns (problems on the list)Total
Month 1Foundations: arrays you can scan03 · Sliding Window (5)
04 · Fast & Slow Pointers (1)
21 · Array & String Basics (1)
7
Month 2Stacks, heaps, intervals, binary search07 · Top 'K' Elements (1)
08 · Overlapping Intervals (3)
09 · Modified Binary Search (4)
8
Month 3Trees and graphs11 · Depth-First Search (DFS) on Graphs (4)4
Month 4Search and dynamic programming14 · Backtracking (1)
15 · Dynamic Programming Patterns (1)
2
Month 5Hashing, greedy, design, weighted graphs16 · Hash Map & Set (2)
19 · Trie & Design (4)
20 · Shortest Path & MST (1)
7

In the last two weeks, filter to Hard, sort your attention by frequency, and do timed mock interviews: 45 minutes, talk through the brute force, name the pattern, then code it.

All problems

03 04 07 08 09 11 14 15 16 19 20 21 SQL/JS

03 · Sliding Window 5

5 solved on the pattern page (step-by-step explanation and a step-through player).

Done#ProblemLevelFrequencyTopicsLinks
3Longest Substring Without Repeating CharactersMedium90Hash Table, String, Sliding Window
220Contains Duplicate IIIHard88Array, Sliding Window, Sorting, Bucket Sort, Ordered Set
219Contains Duplicate IIEasy74Array, Hash Table, Sliding Window
904Fruit Into BasketsMedium49Array, Hash Table, Sliding Window
718Maximum Length of Repeated SubarrayMedium49Array, Binary Search, Dynamic Programming, Sliding Window, Rolling Hash, Hash Function

04 · Fast & Slow Pointers 1

1 solved on the pattern page (step-by-step explanation and a step-through player).

Done#ProblemLevelFrequencyTopicsLinks
41First Missing PositiveHard65Array, Hash Table

07 · Top 'K' Elements 1

1 solved on the pattern page (step-by-step explanation and a step-through player).

Done#ProblemLevelFrequencyTopicsLinks
347Top K Frequent ElementsMedium58Array, Hash Table, Divide and Conquer, Sorting, Heap (Priority Queue), Bucket Sort, Counting, Quickselect

08 · Overlapping Intervals 3

3 solved on the pattern page (step-by-step explanation and a step-through player).

Done#ProblemLevelFrequencyTopicsLinks
253Meeting Rooms II PremiumMedium86Array, Two Pointers, Greedy, Sorting, Heap (Priority Queue), Prefix Sum
56Merge IntervalsMedium83Array, Sorting, Quicksort
228Summary RangesEasy65Array

09 · Modified Binary Search 4

4 solved on the pattern page (step-by-step explanation and a step-through player).

Done#ProblemLevelFrequencyTopicsLinks
981Time Based Key-Value StoreMedium92Hash Table, String, Binary Search, Design
875Koko Eating BananasMedium58Array, Binary Search
1146Snapshot ArrayMedium49Array, Hash Table, Binary Search, Design, Persistent Data Structure
162Find Peak ElementMedium49Array, Binary Search

11 · Depth-First Search (DFS) on Graphs 4

4 solved on the pattern page (step-by-step explanation and a step-through player).

Done#ProblemLevelFrequencyTopicsLinks
210Course Schedule IIMedium88Depth-First Search, Breadth-First Search, Graph Theory, Topological Sort
332Reconstruct ItineraryHard88Array, String, Depth-First Search, Graph Theory, Sorting, Heap (Priority Queue), Eulerian Circuit, Eulerian Path, Semi-Eulerian Graph
1136Parallel Courses PremiumMedium80Graph Theory, Topological Sort, Directed Acyclic Graph
797All Paths From Source to TargetMedium49Backtracking, Depth-First Search, Breadth-First Search, Graph Theory, Directed Acyclic Graph

14 · Backtracking 1

1 solved on the pattern page (step-by-step explanation and a step-through player).

Done#ProblemLevelFrequencyTopicsLinks
79Word SearchMedium74Array, String, Backtracking, Depth-First Search, Matrix

15 · Dynamic Programming Patterns 1

1 solved on the pattern page (step-by-step explanation and a step-through player).

Done#ProblemLevelFrequencyTopicsLinks
139Word BreakMedium58Array, Hash Table, String, Dynamic Programming, Trie, Memoization, Brute-Force Search

16 · Hash Map & Set 2

2 solved on the pattern page (step-by-step explanation and a step-through player).

Done#ProblemLevelFrequencyTopicsLinks
217Contains DuplicateEasy70Array, Hash Table, Sorting
242Valid AnagramEasy49Hash Table, String, Sorting

19 · Trie & Design 4

3 solved on the pattern page (step-by-step explanation and a step-through player), 1 Easy warm-ups that link to LeetCode.

Done#ProblemLevelFrequencyTopicsLinks
359Logger Rate Limiter PremiumEasy86Hash Table, Design, Data Stream
146LRU CacheMedium65Hash Table, Linked List, Design, Doubly-Linked List
460LFU CacheHard49Hash Table, Linked List, Design, Doubly-Linked List
642Design Search Autocomplete System PremiumHard49String, Depth-First Search, Design, Trie, Sorting, Heap (Priority Queue), Data Stream

20 · Shortest Path & MST 1

1 solved on the pattern page (step-by-step explanation and a step-through player).

Done#ProblemLevelFrequencyTopicsLinks
743Network Delay TimeMedium70Depth-First Search, Breadth-First Search, Graph Theory, Heap (Priority Queue), Shortest Path, Dijkstra's Algorithm

21 · Array & String Basics 1

1 solved on the pattern page (step-by-step explanation and a step-through player).

Done#ProblemLevelFrequencyTopicsLinks
8String to Integer (atoi)Medium70String

SQL & JavaScript (practice on LeetCode) 1

Database and JavaScript problems from the list. They aren't Python algorithm problems, so they link straight to LeetCode.

Done#ProblemLevelFrequencyTopicsLinks
2622Cache With Time LimitMedium100