My issue
why not for all {1,2,…,N}
if A[1]>=A[0] what’s the problem?
->it’s also the correct
My code
7008
Learning course: Arrays using Python
Problem Link: Multiple Choice Question Practice Problem in - CodeChef
why not for all {1,2,…,N}
if A[1]>=A[0] what’s the problem?
->it’s also the correct
7008
Learning course: Arrays using Python
Problem Link: Multiple Choice Question Practice Problem in - CodeChef
@krishnagarg120
its correct for 0 based indexing but in this problem they have considered 1 based indexing.
Thanks for explaining it’s truly helped me