InterviewDB Question

Friendship Path - Shortest Mutual Connection Between Two Users

Question Details

Problem A social graph is represented as an undirected adjacency list. Given two users src and dst, find the shortest path between them and return the list of user IDs along that path (inclusive). If no path exists, return an empty list. Example Foll…

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Coding Onsite Phone