google logo
Google· SDE I

Google Phone Screen L3 - USA - Rejected

Result
Rejected
Location
USA
Posted
4 Sept 2025
410 reads

Summary

I had a phone screen for an L3 role at Google in the USA where I was presented with a problem involving mapping IP addresses to their most specific prefix, which I failed to solve, leading to my rejection.

How it went

I recently had a phone screen interview for an L3 position at Google in the USA. The interview focused entirely on a single coding problem. I was given a task to map IP addresses to their corresponding prefixes based on a given list of prefix rules. I struggled significantly with the problem, failing to identify the correct data structure and approach, and ultimately couldn't come up with a working solution. This directly led to my rejection from the role.

Questions asked (1)

  1. 01

    Map IP Address to Most Specific Prefix

    Data Structures & Algorithms

    Given a set of IP prefixes and a set of IP addresses, map each IP address to its most specific matching prefix. If no specific prefix exists for an IP address, it should be mapped to the wildcard prefix '*'.

    Prefix examples provided:

    • *
    • 192.168.*
    • 192.168.2.*
    • 192.168.2.1
    IP Address examples provided:
    • 0.0.0.0
    • 192.168.7.1
    • 192.168.2.3
    • 192.168.2.1
    Expected Output for examples:
    • 0.0.0.0 → *
    • 192.168.7.1 → 192.168.*
    • 192.168.2.3 → 192.168.2.*
    • 192.168.2.1 → 192.168.2.1

Know someone preparing? Send it to them:WhatsAppLinkedInX

Interviewed at Google recently?

Write up your rounds while you still remember the questions. It helps the next person more than you would think.

Share your experience
Discussion 0

Questions for the author, or how your own interview compared.

Join the discussion

Sign in with Google to comment or ask the author a question.

No comments yet

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