Don’t know where I am failing the first test case. Rest both cases pass. If it is for negative numbers error then where I am failing for it ?
Sorted Array one test case failing
@piyush.bansal8158625 hey piyush please share your code through ide.codingblocks.com first copy your code and then press save button it will generate a link that link you have to share.
@piyush.bansal8158625 line no 9 a[i]<=a[i+1]
because let us say
5
1 1 2 3 5 you was not considering this case