Longest bitonic subsequence


hey , i tried the question with same concept using maps
some test cases are not passing
not able to find the error
Thanks in advance !

@nischay1111
hey havve u used Longest increasing sub sequence loggic??

yes for every element as index of map ,i have stored the number of max elements smaller than current element in the left and right subarray to the element

not longest increasing subsequence concept

is this method discussed in any of the coding blocks tutorial

using a map??

no , i tried without watching tutorial. That’s why had to raise a doubt

check thi s
i am debugging ur solution

pata nhi i am not able to get the logic for this!!!

ya to example do
ki ho kya raha h or go by the conventional way

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.