Practice Test Geeks home

CodeSignal Technical Assessment Graph and Tree Algorithms Questions and Answers

A social media application wants to find the shortest chain of connections between two users (e.g., 'friend of a friend').
If the network is represented as an unweighted graph where users are nodes and friendships are edges, which algorithm is most suitable for this task?

Select your answer