if possible give a sample input and output in which that splitting part is used…
Didn't understand the question
5 (n)
following n inputs
5
4
3 <<<->>>
4
5
first decreasing then increasing.
answer is “true”
1 Like