I tried to find the answer to one of the problems of my interview. But did not receive a decision. Can anyone help me on this. Here is the problem Description:
Given two people, the names A and B. You know that both exist on FB. You must say whether there is a connection between them. If connectivity exists, you must specify the exact connection path. By Connectivity, they mean that B can be a friend of C, which is a friend of A. Thus, re is a connection between A and B, and the path will be A → B-> C
source share