Patterns: hashing, pointers, windows, binary search

Episode 18 Two Pointers II

20 min · Java · Quiz

Title card of Episode 18: Two Pointers II

▶ This video is coming to YouTube soon.

You'll solve LeetCode 15, 42, 287 and 5: sort plus two pointers, left/right maxima, Floyd's cycle trick on indexes, and expanding around centres.

Quiz: test yourself

The 3 questions from the end of the episode. Pick an answer to see why it's right.