Computer Science, asked by sanjeevvane, 9 months ago

Coding Area
А
B
C
D
E
F
ONLINE EDITOR (A)
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
Input
First line contains integer T, denoting the number of testcases.
For each testcases:
0 ENG
12.09
09-08-2020​

Answers

Answered by gangadeviwaganageri
0

Answer:

okk

Explanation:

I will help u please mark me as brainliest I will help u

Similar questions