Find group of persons can be friends with given enemies edges
Anonymous User
324

Assume there are 4 persons : A, B, C, D
A-B indicates that they are enemies
B-C indicates that they are enemies
C-D indicates that they are enemies

Note : Enemies enemy is a friend.

So , A and C are friends similarly B and D are friends.

We need to find the group of friends from the list of edges/enemies. Any thoughts on how to solve this?

Comments (0)