Question #301207

Sample Input 2

4

2

3

5

7

Sample Output 2

2


Sample Input 1

5

1

10

4

3

2

Sample Output 1

3



can i get coode for this the above code is not working for both cases


Expert's answer

What is the question?


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS