subject

Implement a function called merge that does the following in C#:

* Takes three sequences of numbers from 1 to 15

* Merge the list with members that adhere to the following requirements

* Any multiple of 3

* Is a member of all three lists

Explanation:

First get a list of multiples of three from all three lists (no repeats)

Then combine the list of threes with the intersection of all three lists (no repeats)

public class Problem2

{

public static IEnumerable merge(IEnumerable input1, IEnumerable input2, IEnumerable input3)

{

}

}

static void Main(string[] args)

{

Random rnd = new Random();

var list1 = Enumerable. Range(1,10).Select(i=>(rnd. Next()%15)+1);

var list2 = Enumerable. Range(1,10).Select(i=>(rnd. Next()%15)+1);

var list3 = Enumerable. Range(1,10).Select(i=>(rnd. Next()%15)+1);

var answer = Problem2.merge(list1,list2,list3);

foreach( int i in answer )

{

Console. WriteLine(i);

}

}

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 15:00
Atool that matches persoal skills qualities interests and talets to a career is called a
Answers: 1
question
Computers and Technology, 22.06.2019 18:30
Which of the following is an example of intellectual properly! oa. new version of a novelb. journal of ideasc. pages of a bookood. lines of a poem
Answers: 2
question
Computers and Technology, 22.06.2019 19:30
Once the data center routes to the destination server that hosts the website, what's the next step in the internet process? user’s browser renders html code from destination server into web page request goes through router/model and isp request routed to nameserver and datacenter
Answers: 2
question
Computers and Technology, 23.06.2019 06:30
To become an audio technician, the most successful tactics might include the following. (select all that apply). learning how to persuade other people gaining different types of experience in audio technology learning as much as possible about art history establishing a reputation as a reliable professional
Answers: 1
You know the right answer?
Implement a function called merge that does the following in C#:

* Takes three sequence...
Questions
question
Spanish, 05.11.2020 18:10
question
Physics, 05.11.2020 18:10
question
Social Studies, 05.11.2020 18:10
question
Mathematics, 05.11.2020 18:10
question
English, 05.11.2020 18:10
question
English, 05.11.2020 18:10
question
Mathematics, 05.11.2020 18:10
Questions on the website: 13722360