the question says print true if array S can be split so s1 to Si is decreasing and Si+1 to Sn is increasing. Then how 1,2,3,4,5 is true? This array can’t be split into a decreasing and increasing sequence as all numbers are in increasing order
the question says print true if array S can be split so s1 to Si is decreasing and Si+1 to Sn is increasing. Then how 1,2,3,4,5 is true? This array can’t be split into a decreasing and increasing sequence as all numbers are in increasing order