← All courses

Course / 12 modules

LeetCode Collections: Interview Problems from Naive to Optimal

76 LeetCode interview problems worked as spoken interviews, from the first working answer to the optimal one, in TypeScript on Node.js.

After this course, you can

  • Work a coding problem out loud in nine steps, from clarifying questions to the interviewer’s follow-ups
  • Read a problem’s limits and turn them into the cost your solution needs
  • Start from a slow solution that works, name the work it repeats, and remove it
  • Test your code out loud on your own example and an edge case, and state its time and memory cost
  • Recognize the pattern behind 76 common interview problems, from hashing to dynamic programming

The course is free.

Who it is for

Developers getting ready for coding interviews who can solve problems at a desk but have not practiced solving them out loud, with someone watching.

  • You should already read TypeScript and know Big O; the Data Structures and Algorithms course teaches the structures underneath
  • Every problem is free on LeetCode and appears on at least two of Blind 75, Grind 75, NeetCode 150 and LeetCode’s Top Interview 150
  • It leaves out system design and behavioral interviews, SQL problems and LeetCode Premium problems

How it works

  • Each problem is a scripted interview between an interviewer and a candidate, from the naive solution to the optimal one
  • Each problem has a hint to try first, a traced example, its cost, common mistakes and hidden answers to the follow-ups
  • Each module measures one naive solution against the optimal one, and ends with a cheat sheet
  • The last module adds a full 45-minute mock interview and a rubric for scoring your own practice
  • You need Node.js 24 or later and a text editor; TypeScript runs directly in Node.js, with no packages to install
  • Code and tests for every problem in github.com/vespaiach/leetcode-collection

Outline

12 modules, read in order