Mockd

Demo case file · Technical

Google

Software Engineer

Technology Technical Medium 45 min

This is a demo case file: a realistic example written from commonly known interview formats, not a real candidate's interview experience.

Questions asked

  1. Given an array of integers, find two indices whose values sum to a target number.
  2. Reverse a singly linked list, iteratively and then recursively.
  3. What is the time and space complexity of your solution, and how would you improve it?

What to expect

Interviewer wanted the brute-force approach stated first, then pushed for an optimized version. Cared a lot about talking through trade-offs out loud before writing code, and asked for a couple of edge-case unit tests at the end.

Practice this exact interview.

Mockd plays the interviewer live, using these questions and notes, then grades your answers.

Start a practice session Browse all case files