The Question Link is :-
I understand the Question and i assume he wants minimum difference between two element in an array so my approach was that we can sort the array and the answer will be arr[1]-arr[0] but i saw time limit 0.6 second so, the thought the better solution will be to find the minimum and second minimum element and substract them and that will be the result.
My solution:-
https://www.codechef.com/viewsolution/28047203
But now i know that my logic is wrong and there is something hidden in the Problem Statement.
Can You help me understanding the Problem.