Doubt in question

according to the question .can we split the array into two splits with first decreasing and second increasing?

this can be always ‘true’ as we can sort the array in descending order and arrange the array in a way to as largest number in 0th position, second largest in n-1th position , third largest in 1st position so…on…

@Bond007 you can’t change the position of the elements means you can’t sort the array you have to split given original array.

but it was not specified in the question clearly right?

@Bond007 bro if sorting were allowed then this question will be of no use,.

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.