Slit array into 2 parts such thta decreasing and then increasing
Answers
Answered by
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