Didn't understand the question

if possible give a sample input and output in which that splitting part is used…

5 (n)
following n inputs
5
4
3 <<<->>>
4
5
first decreasing then increasing.
answer is “true”

1 Like