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
Social Sciences,
6 months ago
Computer Science,
6 months ago
Math,
1 year ago
Math,
1 year ago
Social Sciences,
1 year ago
Biology,
1 year ago