Computer Science, asked by sainandhankalicheti, 9 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.
A malicious Haskeller B is constantly
troubling A. A needs to know the minimum
set of friends he needs to unfriend to stop B
from reaching out to him.
Complete the function 'solution given below.​

Answers

Answered by sathishkumar36
0

Answer:

vagahnahahabbs szbsusuuw

Answered by sujan3006sl
0

Answer:

INPUT FORMAT

total members in FP FriendNetwork

memberid 1

Memberld2

MemberIdN

Total possible edges

<follower1> <following 1>

<follower2> <following2>

<followerN> <followingN>

Follower

Following

Explanation:

Functions are the building blocks of code structure and may be found in all higher-order programming languages. In general, functional programming entails maximising the use of functions to create clean, maintainable software. Functional programming is a collection of coding methodologies that is sometimes referred to as a programming paradigm.

Using map() and an anonymous function in Java

import java.util.*;

import java.util.stream.Collectors;

import static java.util.stream.Collectors.toList;

//...

List lower = Arrays.asList("a","b","c");

System.out.println(lower.stream().map(s -s.toUpperCase()).collect(toList())); // outputs ["A", "B", "C"]

#SPJ3

Similar questions