Physics, asked by Amit7984, 1 year ago

Slit array into 2 parts such thta decreasing and then increasing

Answers

Answered by Anonymous
0

Input: arr[] = {3, 2, 1, 2}

Output: 1

{3, 2, 1} is strictly decreasing

then {1, 2} is strictly increasing.


Input: arr[] = {3, 2, 1}

Output: No such element exist


I hope this will help you

If not then comment me

Similar questions