Https://www.codechef.com/viewsolution/45793995

https://www.codechef.com/viewsolution/45793995
If I am getting the same output , with same time complexity , all i ask is for the wrongs in my code i a=have been analysing it too many times it feels the shortest and better please revert and help

Consider the test input:

1
8
100 31 70 27 69 36 69 76

Thank you so much got the problem with my code .

1 Like