Google | L4 | Phone Screen | June 2022

google logo
google
SDE IIOngoing
July 7, 20225 reads

Summary

I recently completed a Google L4 phone screen where I encountered a challenging variation of the Longest String Chain problem, specifically requiring the chain to begin with a single-character word.

Full Experience

I had my phone screen interview for an L4 Software Engineer role at Google in June 2022. The session was fairly standard, starting with introductions and a brief chat about my background. The main part of the interview focused on a coding problem. The question presented was a clear variation of the 'Longest String Chain' problem found on LeetCode. The core difference was an explicit constraint: the string chain had to always start with a single-character string. For example, a valid chain would progress like 'a' -> 'ab' -> 'abc'. I focused on understanding this specific modification and how it would influence the dynamic programming approach typically used for the original problem.

Interview Questions (1)

Q1
Longest String Chain with Single Character Start
Data Structures & Algorithms

Given a list of words, find the longest possible word chain where each word is formed by adding exactly one character to the previous word. The chain must start with a single-character string (e.g., 'a' -> 'ab' -> 'abc'). This is a variation of the classic Longest String Chain problem.

Discussion (0)

Share your thoughts and ask questions

Join the Discussion

Sign in with Google to share your thoughts and ask questions

No comments yet

Be the first to share your thoughts and start the discussion!