Question: 1 . List & Set ( 5 0 % ) We want to build a friend recommendation system. When two users who are unfamiliar with
List & Set
We want to build a friend recommendation system. When two users who are unfamiliar with each other
know someone in common, we will provide recommendations so that they can get to know each other.
However, given that some people may be offended by specific individuals, we would like to avoid
unnecessary referrals, so please help these users refer some new friends. Remarks: There is no situation
where A knows B but B does not know A Once you know each other, you can no longer recommend
them.
List & Set
:
Input:
Know:
Blacklist.:
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
