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 17:30
Which tab should you open to find the option for adding a header?
Answers: 1
question
Computers and Technology, 22.06.2019 18:30
Which of the following commands is more recommended while creating a bot?
Answers: 1
question
Computers and Technology, 23.06.2019 13:00
In excel - calculate the actual increase/decrease from first quarter to the second quarter then subtract subtract first quarter value from second quarter total then divide result by first quarter value
Answers: 1
question
Computers and Technology, 23.06.2019 15:30
Hey so i was just trying out some game hacks so i took a paste from online and built it in my visual studio and then suddenly my computer was working or clicking on stuff on its own am i hacked?
Answers: 1
You know the right answer?
Implement a function called merge that does the following in C#:

* Takes three sequence...
Questions
question
Social Studies, 19.05.2020 15:31
question
Mathematics, 19.05.2020 15:31
question
Mathematics, 19.05.2020 15:31