how to solve this question ?
unable to understand question
Biotonic subarray doubt
In this question, you have to take two arrays, one inc[ ] and other dec[ ] and then you have to traverse the original array to determine wheather you array is increasing or decreasing, thus for inc [ ], you will traverse from 0 to n-1, and for dec[ ], you will traverse from n-1 to 0 and then based on that, you will calculate the max value, simply by formulae, max(inc[i], dec[i]) + 1.