SarthakKeshari / CPP-Questions-and-Solutions

This repository aims to solve and create new problems from different spheres of coding. A path to help students to get access to solutions and discuss their doubts.
MIT License
47 stars 132 forks source link

Maximum length of Bitonic Sequence #384

Closed PrakharRathore123 closed 2 years ago

PrakharRathore123 commented 2 years ago

Issue Id you have worked upon -

381

Briefly explain your program logic -

1) Calculate the maximum longest increasing subsequence form 0 to n 2)Store the maximum in forward 3)Calculate the maximum longest increasing subsequenec form n-1 to 0 4) Store the maximum in backward

Screenshots(Attach 2 screenshots of your own input and output) -

BitonicA BitonicB


Checklist:

Eg - If your code follow the below guidelines. Kindly change [] to [x]

All the conditions should be fulfilled for considering your code for merging -

PrakharRathore123 commented 2 years ago

@SarthakKeshari Kindly acknowledge this

PrakharRathore123 commented 2 years ago

@SarthakKeshari Kindly acknowledge this

PrakharRathore123 commented 2 years ago

@SarthakKeshari Kindly acknowledge this I have saved this issue in dynamic programming folder.