Increasing decreasing sequence

sir i have understood the concept of this question and its answer but when i am trying to run the program my answer is not coming because i do not know how to use boolean function properly. please send me a program whose answer comes properly so i will understand boolean

hi @abhinavai21_5c95a2a2e1fb9fe8,
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)

for implementation difficulties check this I’ve commented properly https://ide.codingblocks.com/s/656052