sir please give me the reference from where i can study about these question
Maximum length bitonic subarray
this is pretty helpful
sir i couldn’t understand from it can you refer another thing
@YASHMATHURIA123 for every index we store the length of longest increasing and longest decreasing subarrays. Now to find answer we consider every element as centre element (peak element) and for this peak we take inc[i]+dec[i]-1, we do -1 because we consider current element twice. If still don’t get it, you can see some videos on youtube for [Maximum length bitonic subarray].