Computer Science, asked by aradhya9223, 8 months ago

FPFriendNetwork is a community of FP developers. It allows users to meet new friends / collaborate and discuss various topics around Functional Programming. This community has been modelled as a directed social network graph.

Haskell Ninja A wants to know if he can reach out to a Clojure expert B using his network.

Complete the function 'solution' given below.

INPUT FORMAT

total members in FPFriendNetwork

memberId1

MemberId2 ……………. MemberIdN

Total possible edges

………………

Follower

Following

OUTPUT FORMAT

"0" OR "1"



Sample Input

4

2

5

7

9

4

2 9

7 2

7 9

9 5

7

9

Sample Output

1

Answers

Answered by ky9210004
0

Answer:

sorry dont know this amswer

Similar questions