Question: I have an arraylist of users that have a username and password. Each user can be connected to other users that is also stored into
I have an arraylist of users that have a username and password. Each user can be connected to other users that is also stored into an arraylist (each user has an arraylist of connected users). I need to write a recursive method to find the degree of separation between the current user and another user. I need help for the overall logic of doing this in Java.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
