Command Palette

Search for a command to run...

Module 44

Interview Method and Simulation

How to solve live: clarify, examples, brute force, optimise, code, test and explain, plus what interviewers expect at each level and six timed mock rounds.

Advanced 6 lessons 18 curated problems ~70 min of lessons

Knowing the patterns is half of a coding interview. The other half is solving in front of someone: asking the right questions, thinking aloud, writing clean code under time pressure, testing it yourself, and recovering when you're stuck.

This module gives you a seven-step method with a sample talk track, explains what interviewers score at different levels, sets out a revision plan for the final weeks, and ends with six mock rounds of three problems each, drawn from across the course and not repeated from the Core 100.

Best after: The Core 100

Part 1

Learn the ideas

Set 1 · 3 problems

Mock round 1

45 minutes for all three. Talk out loud and follow the seven steps.

  1. 1.Contiguous ArrayMediumModule 5Prefix Sum + Hash Map
  2. 2.Minimum Number of Arrows to Burst BalloonsMediumModule 16Greedy Choice
  3. 3.IPOHardModule 19Two Heaps

Set 2 · 3 problems

Mock round 2

45 minutes. Note how you recognised each pattern.

  1. 1.Longest Palindromic SubstringMediumModule 3Expand Around Center
  2. 2.Open the LockMediumModule 22Graph BFS
  3. 3.Best Time to Buy and Sell Stock with CooldownMediumModule 331D Dynamic Programming

Set 3 · 3 problems

Mock round 3

45 minutes. State the brute force for each before optimising.

  1. 1.Car FleetMediumModule 10Monotonic Stack
  2. 2.Most Stones Removed with Same Row or ColumnMediumModule 26Union-Find
  3. 3.Distinct SubsequencesHardModule 32DP on Two Strings

Set 4 · 3 problems

Mock round 4

45 minutes. Test each solution by hand on an edge case.

  1. 1.Capacity to Ship Packages Within D DaysMediumModule 12Binary Search on the Answer
  2. 2.Search Suggestions SystemMediumModule 20Trie (Prefix Tree)
  3. 3.Path With Minimum EffortMediumModule 27Dijkstra's Shortest Path

Set 5 · 3 problems

Mock round 5

45 minutes. Explain the complexity of every idea you mention.

  1. 1.Rotate ArrayMediumModule 2Two Pointers: Opposite Ends
  2. 2.Target SumMediumModule 31Knapsack DP
  3. 3.Reconstruct ItineraryHardModule 37Graph DFS and Flood Fill

Set 6 · 3 problems

Mock round 6

45 minutes. Treat it as the real thing: no notes, no hints.

  1. 1.Partition LabelsMediumModule 34Greedy Choice
  2. 2.Time Based Key-Value StoreMediumModule 40Combine Structures to Design
  3. 3.Longest Increasing Path in a MatrixHardModule 25Topological Sort