Back to community

Google - Software Engineer - L4 Interview ExperienceGoogle · Software Engineer - L4

  • Fearless Panda 3ZLV
  • 92 views
5 rounds4 questionsInterviewed November 2026

Overview

Google L4 interviews in India, 2025. A phone screen, three coding rounds and Googlyness. Two coding rounds went well and one did not. The recruiter explained I needed to exceed expectations in at least two of the three coding rounds, and a positive Googlyness round could not make up for it. Rejected with a 12 month cooldown.

  1. Phone Screen

    One problem: brute force first, then an optimised version. Positive feedback.

    1 question asked

    1. Question 1

      Given several files, each a list of lines, find the longest matching prefix of lines shared by any two files.

      Answer 1

      Coded the all-pairs brute force in about 15 minutes. For the optimised version, built a trie over lines with a count at each node, and the deepest node with a count of at least 2 is the answer. A few bugs, but I explained the approach well.

  2. Coding 1

    A dependency problem in disguise. Went well.

    1 question asked

    1. Question 1

      Cloud storage has disks and snapshots, and disks can be created from snapshots. A snapshot can only be deleted after every disk created from it, and their descendants, are deleted. Return a safe deletion order.

      Answer 1

      Treated it as a dependency graph and returned a topological order.

  3. Coding 2

    A graph problem where the interviewer nudged me towards a simpler approach.

    1 question asked

    1. Question 1

      In an unweighted graph, some nodes have friends and some have cafes. Pick the cafe that minimises the maximum distance any friend has to travel, or return null if none works. The graph can have cycles.

      Answer 1

      First suggested Dijkstra and Floyd-Warshall. The interviewer asked how I would do it in real life, which led to BFS from each friend, similar to Rotting Oranges. Feedback was positive, with a note to work on testability.

  4. Coding 3

    A hard DP problem. Only reached brute force.

    1 question asked

    1. Question 1

      Given a collection of 2D boxes, find the maximum number that can be nested one inside another.

      Answer 1

      Recognised it as the Russian doll envelopes family but only got to a brute force solution in time. This was the round that cost the offer.

  5. Googlyness

    Conversational and positive. Background, projects and behavioural questions. Went well, but it doesn't offset the coding rounds.

Preparation notes

Questions are vague on purpose. Ask clarifying questions early and agree on examples before coding. Many problems are a classic in disguise (topological sort, multi-source BFS). Practise spotting the pattern under the story. Hard DP still shows up at L4. Don't skip it. Stub out trivial code with comments to save time for the core logic. Upsolve problems you fail instead of moving on. Try more than one approach.

Experiences are submitted by candidates and reflect their own accounts. Lampzi does not verify them. Browse more experiences