Computer Science, asked by harivenkateshnagired, 2 months ago

A company has a lot of work to do. They have tight

deadlines both from development and support. They

evaluate the product release after every k days. Every day

they remove the best IQ guy and worst IQ guy from the

team and add a new guy with IQ same as there difference.

This happens usually many teams during the whole financial

year. You are given a list of guys with there IQs. There you

would have multiple queries stating the Kth day the team

wants to evaluate. At the end of each query you have to

return the whole possible IQs

of the team.

Input:​

Answers

Answered by gangadhar12pathrkar
5

Answer:

SDA company has a lot of work to do. They have tight

deadlines both from development and support. They

evaluate the product release after every k days. Every day

they remove the best IQ guy and worst IQ guy from the

team and add a new guy with IQ same as there difference.

This happens usually many teams during the whole financial

year. You are given a list of guys with there IQs. There you

would have multiple queries stating the Kth day the team

wants to evaluate. At the end of each query you have to

return the whole possible IQs

of the team.

Similar questions