Help rahul problem

can u please explain the solution when we are drawing two region part 1 and part 2 i m not able to understand when after calucating the mid we are going in part 1.

as an input 4,5, 1, 2, 3 we have 1 as input then ?

hi @Vikaspal those 2 parts basically mean that the part you’ll end up in will either be sorted or unsorted. Rest is all based on whether you’re in a sorted part or unsorted part.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.