Google L5 Reject -- Bengaluru -- Ph.D.

Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2025-05-16Added By Anonymous
Source: Link

Company: Google
Role: L5
Interview Stage: Onsite
Location: Bengaluru
Year: unknown

Original Post Content:

Hello Everyone.

I am sharing my interview experience at Google Bengaluru. Distributed learning team (Berlin HQ), MLOps role. I was contacted by a recruiter in the month of February.


Telephonic Interview

Nice and humble interviewer. I got stuck at one point, where she pointed out an erroneous assumption I was making.


Question.

Given two strings s1 and s2, where len(s1) >> len(s2), find the minimal substring sk in s1 such that s2 can be constructed by picking letters from sk one or more times. Return the first and (last - 1) index of the string sk in s1.

  • https://leetcode.com/problems/stickers-to-spell-word/description/

How I solved.

String Manipulation -> substring window
DP Approach ->
Suffix Tries -> Largest suffix to ignore.


Verdict

Hire


Round-1 Interview


Question.

Given an array of numbers, where i ≤ a[i] ≤ i2, find the largest subarray with sum, s such that s ≠ n ∧ s < n2 where, n is the size of the array.

  • https://leetcode.com/problems/maximum-size-subarray-sum-equals-k/description/

How I solved.


Verdict

Strong Hire


Round-2 Interview


Question.

Similar to House Robber - III.

  • https://leetcode.com/problems/house-robber-iii/description/

How I solved.


Verdict

Strong Hire


Round-3 Interview


Question.

LRU Cache implementation with a tweak.

  • https://leetcode.com/problems/lru-cache/description/

How I solved.


Verdict

Lean


Round-4 Interview

Interviewer was in a hurry. Gave vague constraints. He asked my what was the motivation to do a Ph.D. in computer science?


Question.

Given a matrix of size n ʣ m, Find the largest submatrix of size i ʣ j such that the sum over rows equals sum over columns and the total sum is less that n + m.


How I solved.

2D Array + DP
Direction vectors


Verdict

Reject

Comments