Computer Science, asked by vchandola1797, 9 months ago

Minimum Gifts Problem Description A Company has decided to give some gifts to all of its employees. For that, company has given some rank to each employee. Based on that rank, company has made certain rules to distribute the gifts. The rules for distributing the gifts are: Each employee must receive at least one gift. Employees having higher ranking get a greater number of gifts than their neighbours. What is the minimum number of gifts required by company? Constraints 1 < T < 10 1 < N < 100000 1 < Rank < 10^9

Answers

Answered by srujanr21
0

Answer:n(n-1)

Explanation:

Adding all employees count is the answer.

Similar questions