Google Onsite 1
Difficulty: EASYCategory: InterviewExperienceFrequency: 1Asked On 2025-04-01Added By Anonymous
Source: Link
🧭 Experience: unknown
✅ Outcome: unknown
💰 Compensation: unknown
📍 Location: unknown
🏢 Company: Google
🎓 Education: unknown
🎁 Benefits: unknown
📅 Offer Date: unknown
Suppose we are creating a string replacement library. Given a map of string replacements, replace the value in the input string
Given map {USER=>admin, HOME=>/%USER%/home}
Input: I am %USER% My home is %HOME%
Output: I am admin My home is /admin/home
I was able to code but not the optimal solution, I gave the recursive solution.
He asked me to handle infinite loop as well but said you don't have to code it out you can just tell the approach. I told him the approach and he said it's okay.
I know my approach was not optimal but he didn't asked to code it. He barely interrupted me during the interview and weirdly the interview ended in less than 30 mins. I am not sure what feedback would he give to me.
✅ Outcome: unknown
💰 Compensation: unknown
📍 Location: unknown
🏢 Company: Google
🎓 Education: unknown
🎁 Benefits: unknown
📅 Offer Date: unknown
Suppose we are creating a string replacement library. Given a map of string replacements, replace the value in the input string
Given map {USER=>admin, HOME=>/%USER%/home}
Input: I am %USER% My home is %HOME%
Output: I am admin My home is /admin/home
I was able to code but not the optimal solution, I gave the recursive solution.
He asked me to handle infinite loop as well but said you don't have to code it out you can just tell the approach. I told him the approach and he said it's okay.
I know my approach was not optimal but he didn't asked to code it. He barely interrupted me during the interview and weirdly the interview ended in less than 30 mins. I am not sure what feedback would he give to me.