Is 15 90 110 150 a valid input for this question?

Hey @codersidhant
Thanks for asking your doubt.

Yes, your given test case is a valid input. The correct output will be No

Yeah sorry @prajjwal07_adm what I meant is that will this be a valid example for a yes output and I agree with you that it will be No for the given test case but there is a code of a user that I stumbled upon while searching for help that gives yes for this test case and is accepted as a solution in the cookoff contest.
Here is the link provided:Solution: 64052886 | CodeChef

@prajjwal07_adm Basically, the tests are weak.

It’s high time Hacking is introduced in Codechef.

1 Like

Yes, I think the test case is weak sorry for that.
In your mentioned code there is some problem.
for i in range(2,n-1):

Here i must start with 1 not 2
for i in range(1,n-1):

I think the problem setter miss this test case in which we have to check the condition for A[1].

1 Like