In the Question given below and the sample input gives the answer true but how it is true. That is what will be the splitted sequence?
problem : https://hack.codingblocks.com/app/contests/2138/1314/problem
In the Question given below and the sample input gives answer true but how it is true that is what will be the splitter sequence?
Hey @piyushsharma141001
you are provided with a sequence , now you need to tell that ,can this sequence be split in 2 sub sequences such that the first sequence is decreasing and the other one is increasing.
For eg:
5
1
2
3
4
5
here there can be two sequences [5 1] and [2 3 4 5] , in this way the first one is decreasing and the other one is increasing .