https://ide.codingblocks.com/s/314875 my code is not getting accepted please check as it is running fine for sample test case
Max Length Bitonic Subarr
@Bhavya_Goel read question again, the condition allows equal elements as well.
socorrect conditions are
if (arr[i] >= arr[i - 1]) inc[i] = inc[i - 1] + 1;
if (arr[i] >= arr[i + 1]) dec[i] = dec[i + 1] + 1;
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.