Logic is correct and working for sample test case but getting wrong answer

source code https://ide.codingblocks.com/s/230525

ok let me check can you send the question link on hackerblocks

I can’t find the question on hackerblock, This one is a question of standard problem maximum length bitonic subarray from an array


here take a look at this i have updated your code and commented the mistakes
@the.shubham.sri

@the.shubham.sri also if the doubt is cleared don’t forget to mark it as resolved in my doubts section :smiley: