One test case is showing false

https://ide.codingblocks.com/s/220089… plz help which case am I missing

@dhirenkinha getting equal elements are also considered as sorted but you are only checking if a[i]<a[i+1], check here for equality too.

1 Like