https://ide.codingblocks.com/s/67895
please tell whats wrong in this approach
Whats wrong in this approach?
@kushagrapathak0987 hey kusha your code is giving wrong output for this one case
9
50 30 5 20 60 45 70 65 80
5 30 20 50 45 60 65 70 80
your output is 3
but expected output is 5 so try to optimise it further
Hey Kushagra,
As you are not responding to this thread, I am marking your doubt as Resolved for now. Re-open it if required.
Please mark your doubts as resolved in your course’s “ Ask Doubt ” section, when your doubt is resolved.