Maximum length bitonic subarray

i am trying to solve the question using same concept but getting TLE…plz explain why,

Hello @dakshi,

You must have done some mistake in the code.
Cross verify your code with the following:


Hope, this would help,
Give a like if you are satisfied.