Interview craft practice questions

How to run a coding interview from the first question to the last test: clarifying, choosing a pattern, talking while you code, dry runs and testing.

5 quick facts

– interview-ready · 8 questions in this topic

– of 8 tried

Saved on this device. Interview-ready means you got it right on two different days. Guesses and hints count for less.

Questions

  1. Spotting the pattern from the questionPick the fix
  2. The first five minutes of a coding interviewOrder the steps
  3. Brute force first, then improvePredict
  4. Count position pairs whose values differ by exactly kPredict
  5. Talking while you codePick the fix
  6. Dry run: the first day an account is overdrawnPredict
  7. Testing your own code in an interviewPredict
  8. What to do when you are stuckOrder the steps

Practise this topic

Flashcards · 18

Flip, then say if you knew it. Needs JavaScript; every answer is also on its question page.

Quick quiz · 8 questions

One exercise per question, checked as you go. Needs JavaScript.

Mock interview · 1 set

Timed, out loud, then tick what you covered. Needs JavaScript.

Quick facts

Recall the answer first, then tap Show to check.

Sources: Topic outline informed by the Tech Interview Handbook by Yangshun Tay and the NeetCode 150 pattern grouping by neetcode-gh, both MIT licensed. Every problem, solution and explanation is written by Best Latest Apps. Credits and license