please check the code
For some cases its saying no output
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