sir please explain this question with some more examples
Increasing and decreasing sequence
hi @ritikbunty2511_729d0258992e0982,
the question says that you need to check if the the whole array can be partitioned somewhere such that initial numbers are increasing and remaining are decreasing
eg 1 2 3 4 9 8 7 6 can be divided into 1 2 3 4 5 9 (increasing) and 8 7 6 (decreasing)
all increasing eg 1 2 3 4 5 is also true
all decreasing eg 5 4 3 2 1 is also true
if both are there then first should be increasing then decreasing
for implementation difficulties check this I’ve commented properly https://ide.codingblocks.com/s/656052