Unable to solve

I am not able to understand how to solve this problem in python, please help me.

Here is my code

count = 0
e =[]
n = int(input())
for i in range(n):
t = int(input())
e.append(t)
i,j = 0,1
while(j<n):
if e[i]<e[j]:
i +=1
j +=1
continue
if e[i]>=e[j]:
i +=1
j +=1
count+=1
if count>1:
print(‘false’)
break
else:
continue
if j==n:
print(‘true’)

Can you please help ?

Hey @18127, this is a leaderboard challenge, you need to solve it yourself. And if unable to do so take help from editorial. For sure you will be able to get it from that.

Happy Learning :blush:

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.