For some cases its saying no output


please check the code

Hello @dbhavanishankar89,

I have modified you code:

Your code was not maximizing the value of mid, rather printing the first value.

Hope, this would help.
Give a like, if you are satisfied.

1 Like