maximum difference problem.....(april challenge)

code i have submitted is giving correct output on my machine but here it is displaying wrong???plz tell

1 Like

It is displaying correct only on some test cases on which you checked. It doesn’t mean that your solution is correct.

Hi @shivali24 >> You can not put questions from Live Contest on the forum. I suggest you to check for more test cases and to check whether your code gives correct results or not by doing the same on paper as well and cross-checking.

If then also, you have problems then please wait till the contest gets over. The editorials will be up, you can read them OR you can directly read the Accepted Solutions made by other users on the problem page itself.

Good Luck.

1 Like