Google Phone Screen

Anonymous User
1416
May 08, 2025
May 23, 2025

Big day tomorrow—my first onsite round!
This community has been incredibly helpful throughout my prep journey, and I’m really grateful for all the guidance. Hoping to return the favor soon Also, could use a bit of luck and blessings for tomorrow!

My interviewer was from Romania.

Cities are connected by one way roads, given street connection find the distance from the closest market(there can be more than one market)

No examples were provided, so I had to create a few on the spot to confirm my understanding.

I reversed the direction of the graph and initially considered Dijkstra’s( I was very nervous) algorithm. But since the roads were unweighted, I corrected myself and switched to a simple multi-source BFS

There was a small follow-up (I don’t recall the exact details), but I remember having to replace the default INT_MAX distance with -1 to signify unreachable nodes.

Phone Screen: Passed
Onsites Delayed and Cancelled
https://leetcode.com/discuss/post/6766991/google-onsites-cancelled-by-anonymous_us-0rrm/

Comments (9)