Video course

Algorithms and Data Structures

Structured interview-style practice with Python walkthroughs for arrays, strings, linked lists, trees, graphs, greedy methods, and dynamic programming.

Video Lessons

Video course

Interview-focused problem solving in Python

Structured interview-style practice with Python walkthroughs for arrays, strings, linked lists, trees, graphs, greedy methods, and dynamic programming.

76 Lessons
Python Language
YouTube Format
Two Sum - Leetcode 1 - Python Lesson 1

Two Sum - Leetcode 1 - Python

Lesson 1 in the playlist with a Python solution walkthrough.

Longest Substring Without Repeating Characters - Leetcode 3 - Python Lesson 2

Longest Substring Without Repeating Characters - Leetcode 3 - Python

Lesson 2 in the playlist with a Python solution walkthrough.

Longest Palindromic Substring - Leetcode 5  - Python Lesson 3

Longest Palindromic Substring - Leetcode 5 - Python

Lesson 3 in the playlist with a Python solution walkthrough.

Container With Most Water - Leetcode 11 - Python Lesson 4

Container With Most Water - Leetcode 11 - Python

Lesson 4 in the playlist with a Python solution walkthrough.

Triplet Sum - Leetcode 15  - Python Lesson 5

Triplet Sum - Leetcode 15 - Python

Lesson 5 in the playlist with a Python solution walkthrough.

Remove Nth Node From End of List - Leetcode 19  - Python Lesson 6

Remove Nth Node From End of List - Leetcode 19 - Python

Lesson 6 in the playlist with a Python solution walkthrough.

Valid Parentheses - Leetcode 20  - Python Lesson 7

Valid Parentheses - Leetcode 20 - Python

Lesson 7 in the playlist with a Python solution walkthrough.

Merge Two Sorted Lists - Leetcode 21  - Python Lesson 8

Merge Two Sorted Lists - Leetcode 21 - Python

Lesson 8 in the playlist with a Python solution walkthrough.

Merge k Sorted Lists - Leetcode 23  - Python Lesson 9

Merge k Sorted Lists - Leetcode 23 - Python

Lesson 9 in the playlist with a Python solution walkthrough.

Search in Rotated Sorted Array - Leetcode 33  - Python Lesson 10

Search in Rotated Sorted Array - Leetcode 33 - Python

Lesson 10 in the playlist with a Python solution walkthrough.

Combination Sum - Leetcode 39 - Python Lesson 11

Combination Sum - Leetcode 39 - Python

Lesson 11 in the playlist with a Python solution walkthrough.

Rotate Image - Leetcode 48 - Python Lesson 12

Rotate Image - Leetcode 48 - Python

Lesson 12 in the playlist with a Python solution walkthrough.

Group Anagrams - Leetcode 49 - Python Lesson 13

Group Anagrams - Leetcode 49 - Python

Lesson 13 in the playlist with a Python solution walkthrough.

Maximum Subarray - Leetcode 53 - Python Lesson 14

Maximum Subarray - Leetcode 53 - Python

Lesson 14 in the playlist with a Python solution walkthrough.

Spiral Matrix - Leetcode 54 - Python Lesson 15

Spiral Matrix - Leetcode 54 - Python

Lesson 15 in the playlist with a Python solution walkthrough.

Jump Game - Leetcode 55 - Python Lesson 16

Jump Game - Leetcode 55 - Python

Lesson 16 in the playlist with a Python solution walkthrough.

Merge Intervals - Leetcode 56 - Python Lesson 17

Merge Intervals - Leetcode 56 - Python

Lesson 17 in the playlist with a Python solution walkthrough.

Insert Interval - Leetcode 57 - Python Lesson 18

Insert Interval - Leetcode 57 - Python

Lesson 18 in the playlist with a Python solution walkthrough.

Unique Paths - Leetcode 62 - Python Lesson 19

Unique Paths - Leetcode 62 - Python

Lesson 19 in the playlist with a Python solution walkthrough.

Climbing Stairs - Leetcode 70 - Python Lesson 20

Climbing Stairs - Leetcode 70 - Python

Lesson 20 in the playlist with a Python solution walkthrough.

Set Matrix Zeroes - Leetcode 73 - Python Lesson 21

Set Matrix Zeroes - Leetcode 73 - Python

Lesson 21 in the playlist with a Python solution walkthrough.

Minimum Window Substring - Leetcode 76 - Python Lesson 22

Minimum Window Substring - Leetcode 76 - Python

Lesson 22 in the playlist with a Python solution walkthrough.

Word Search - Leetcode 79 - Python Lesson 23

Word Search - Leetcode 79 - Python

Lesson 23 in the playlist with a Python solution walkthrough.

Decode Ways - Leetcode 91 - Python Lesson 24

Decode Ways - Leetcode 91 - Python

Lesson 24 in the playlist with a Python solution walkthrough.

Validate Binary Search Tree - Leetcode 98 - Python Lesson 25

Validate Binary Search Tree - Leetcode 98 - Python

Lesson 25 in the playlist with a Python solution walkthrough.

Same Tree - Leetcode 100 - Python Lesson 26

Same Tree - Leetcode 100 - Python

Lesson 26 in the playlist with a Python solution walkthrough.

Binary Tree Level Order Traversal - Leetcode 102 - Python Lesson 27

Binary Tree Level Order Traversal - Leetcode 102 - Python

Lesson 27 in the playlist with a Python solution walkthrough.

Maximum Depth of Binary Tree - Leetcode 104 - Python Lesson 28

Maximum Depth of Binary Tree - Leetcode 104 - Python

Lesson 28 in the playlist with a Python solution walkthrough.

Construct Binary Tree from Preorder and Inorder Traversal - Leetcode 105 - Python Lesson 29

Construct Binary Tree from Preorder and Inorder Traversal - Leetcode 105 - Python

Lesson 29 in the playlist with a Python solution walkthrough.

Best Time to Buy and Sell - Leetcode 121 - Python Lesson 30

Best Time to Buy and Sell - Leetcode 121 - Python

Lesson 30 in the playlist with a Python solution walkthrough.

Binary Tree Maximum Path Sum - Leetcode 124 - Python Lesson 31

Binary Tree Maximum Path Sum - Leetcode 124 - Python

Lesson 31 in the playlist with a Python solution walkthrough.

Valid Palindrome - Leetcode 125 - Python Lesson 32

Valid Palindrome - Leetcode 125 - Python

Lesson 32 in the playlist with a Python solution walkthrough.

Longest Consecutive Sequence - Leetcode 128 - Python Lesson 33

Longest Consecutive Sequence - Leetcode 128 - Python

Lesson 33 in the playlist with a Python solution walkthrough.

Clone Graph - Leetcode 133 - Python Lesson 34

Clone Graph - Leetcode 133 - Python

Lesson 34 in the playlist with a Python solution walkthrough.

Word Break - Leetcode 139 - Python Lesson 35

Word Break - Leetcode 139 - Python

Lesson 35 in the playlist with a Python solution walkthrough.

Linked List Cycle - Leetcode 141 - Python Lesson 36

Linked List Cycle - Leetcode 141 - Python

Lesson 36 in the playlist with a Python solution walkthrough.

Reorder List - Leetcode 143  - Python Lesson 37

Reorder List - Leetcode 143 - Python

Lesson 37 in the playlist with a Python solution walkthrough.

Maximum Product Subarray - Leetcode 152  - Python Lesson 38

Maximum Product Subarray - Leetcode 152 - Python

Lesson 38 in the playlist with a Python solution walkthrough.

Find Minimum in Rotated Sorted Array - Leetcode 153  - Python Lesson 39

Find Minimum in Rotated Sorted Array - Leetcode 153 - Python

Lesson 39 in the playlist with a Python solution walkthrough.

Reverse Bits - Leetcode 190 - Python Lesson 40

Reverse Bits - Leetcode 190 - Python

Lesson 40 in the playlist with a Python solution walkthrough.

Number of 1 Bits - Leetcode 191 - Python Lesson 41

Number of 1 Bits - Leetcode 191 - Python

Lesson 41 in the playlist with a Python solution walkthrough.

House Robber - Leetcode 198 - Python Lesson 42

House Robber - Leetcode 198 - Python

Lesson 42 in the playlist with a Python solution walkthrough.

Number of Islands - Leetcode 200 - Python Lesson 43

Number of Islands - Leetcode 200 - Python

Lesson 43 in the playlist with a Python solution walkthrough.

Reverse Linked List - Leetcode 206 - Python Lesson 44

Reverse Linked List - Leetcode 206 - Python

Lesson 44 in the playlist with a Python solution walkthrough.

Course Schedule - Leetcode 207 - Python Lesson 45

Course Schedule - Leetcode 207 - Python

Lesson 45 in the playlist with a Python solution walkthrough.

Implement Trie (Prefix Tree) - Leetcode 208 - Python Lesson 46

Implement Trie (Prefix Tree) - Leetcode 208 - Python

Lesson 46 in the playlist with a Python solution walkthrough.

Course Schedule II - Leetcode 210 - Python Lesson 47

Course Schedule II - Leetcode 210 - Python

Lesson 47 in the playlist with a Python solution walkthrough.

Design Add and Search Words Data Structure - Leetcode 211 - Python Lesson 48

Design Add and Search Words Data Structure - Leetcode 211 - Python

Lesson 48 in the playlist with a Python solution walkthrough.

Word Search II - Leetcode 212 - Python Lesson 49

Word Search II - Leetcode 212 - Python

Lesson 49 in the playlist with a Python solution walkthrough.

House Robber II - Leetcode 213 - Python Lesson 50

House Robber II - Leetcode 213 - Python

Lesson 50 in the playlist with a Python solution walkthrough.

Contains Duplicate - Leetcode 217 - Python Lesson 51

Contains Duplicate - Leetcode 217 - Python

Lesson 51 in the playlist with a Python solution walkthrough.

Invert Binary Tree - Leetcode 226 - Python Lesson 52

Invert Binary Tree - Leetcode 226 - Python

Lesson 52 in the playlist with a Python solution walkthrough.

Kth Smallest Element in a BST - Leetcode 230 - Python Lesson 53

Kth Smallest Element in a BST - Leetcode 230 - Python

Lesson 53 in the playlist with a Python solution walkthrough.

Lowest Common Ancestor of a Binary Search Tree - Leetcode 235 - Python Lesson 54

Lowest Common Ancestor of a Binary Search Tree - Leetcode 235 - Python

Lesson 54 in the playlist with a Python solution walkthrough.

Product of Array Except Self - Leetcode 238 - Python Lesson 55

Product of Array Except Self - Leetcode 238 - Python

Lesson 55 in the playlist with a Python solution walkthrough.

Valid Anagram - Leetcode 242 - Python Lesson 56

Valid Anagram - Leetcode 242 - Python

Lesson 56 in the playlist with a Python solution walkthrough.

Missing Number - Leetcode 268  - Python Lesson 57

Missing Number - Leetcode 268 - Python

Lesson 57 in the playlist with a Python solution walkthrough.

Find Median from Data Stream - Leetcode 295 - Python Lesson 58

Find Median from Data Stream - Leetcode 295 - Python

Lesson 58 in the playlist with a Python solution walkthrough.

Serialize and Deserialize Binary Tree - Leetcode 297 - Python Lesson 59

Serialize and Deserialize Binary Tree - Leetcode 297 - Python

Lesson 59 in the playlist with a Python solution walkthrough.

Longest Increasing Subsequence  - Leetcode 300 - Python Lesson 60

Longest Increasing Subsequence - Leetcode 300 - Python

Lesson 60 in the playlist with a Python solution walkthrough.

Coin Change - Leetcode 322 - Python Lesson 61

Coin Change - Leetcode 322 - Python

Lesson 61 in the playlist with a Python solution walkthrough.

Counting Bits - Leetcode 338 - Python Lesson 62

Counting Bits - Leetcode 338 - Python

Lesson 62 in the playlist with a Python solution walkthrough.

Top K Frequent Elements - Leetcode 347 - Python Lesson 63

Top K Frequent Elements - Leetcode 347 - Python

Lesson 63 in the playlist with a Python solution walkthrough.

Sum of Two Integers - Leetcode 371 - Python Lesson 64

Sum of Two Integers - Leetcode 371 - Python

Lesson 64 in the playlist with a Python solution walkthrough.

Pacific Atlantic Water Flow - Leetcode 417 - Python Lesson 65

Pacific Atlantic Water Flow - Leetcode 417 - Python

Lesson 65 in the playlist with a Python solution walkthrough.

Longest Repeating Character Replacement - Leetcode 424 - Python Lesson 66

Longest Repeating Character Replacement - Leetcode 424 - Python

Lesson 66 in the playlist with a Python solution walkthrough.

Non-overlapping Intervals - Leetcode 435 - Python Lesson 67

Non-overlapping Intervals - Leetcode 435 - Python

Lesson 67 in the playlist with a Python solution walkthrough.

Subtree of Another Tree - Leetcode 572 - Python Lesson 68

Subtree of Another Tree - Leetcode 572 - Python

Lesson 68 in the playlist with a Python solution walkthrough.

Can Place Flowers - Leetcode 605 - Python Lesson 69

Can Place Flowers - Leetcode 605 - Python

Lesson 69 in the playlist with a Python solution walkthrough.

Maximum Length Of Pair Chain - Leetcode 646 - Python Lesson 70

Maximum Length Of Pair Chain - Leetcode 646 - Python

Lesson 70 in the playlist with a Python solution walkthrough.

Palindromic Substrings - Leetcode 647 - Python Lesson 71

Palindromic Substrings - Leetcode 647 - Python

Lesson 71 in the playlist with a Python solution walkthrough.

Shortest Path Visiting All Nodes - Leetcode 847 - Python Lesson 72

Shortest Path Visiting All Nodes - Leetcode 847 - Python

Lesson 72 in the playlist with a Python solution walkthrough.

Maximize Distance to Closest Person - Leetcode 849 - Python Lesson 73

Maximize Distance to Closest Person - Leetcode 849 - Python

Lesson 73 in the playlist with a Python solution walkthrough.

Partition Array for Maximum Sum - Leetcode 1043 - Python Lesson 74

Partition Array for Maximum Sum - Leetcode 1043 - Python

Lesson 74 in the playlist with a Python solution walkthrough.

Longest Common Subsequence - Leetcode 1143 - Python Lesson 75

Longest Common Subsequence - Leetcode 1143 - Python

Lesson 75 in the playlist with a Python solution walkthrough.

Largest Color Value in a Directed Graph - Leetcode 1857 - Python Lesson 76

Largest Color Value in a Directed Graph - Leetcode 1857 - Python

Lesson 76 in the playlist with a Python solution walkthrough.