Doubt in sorted array

it’s not giving correct output for one of the testcase ,

@shubham.mehla2000 Use <= instead of < in line number 10 and then check.

1 Like