https://ide.codingblocks.com/s/220089… plz help which case am I missing
One test case is showing false
@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