‹ All notes
Google

Google 2027 SDE Intern (Passed): Undirected Unweighted Graph — Fewest Edges for Alice and Bob to Reach the Destination

A Google 2027 Summer Intern VO question: in an undirected unweighted graph, Alice starts at A and Bob at B, both heading to D; minimize the size of the union of edges on their two paths. Three BFS runs plus enumerating the meeting point, O(V+E).

VO

Found this helpful? Let's talk.

Happy to swap interview notes, do mock interviews, or share referral info.

More Google notes

View all ›