cant understand the logic behind it
Max biotonic subarray length
Hello @Sajid07,
Approach:
- Take a variable say nw to keep track of multiple biotonic sub arrays in the given array.
- Compare the current element with previous element.
- A biotonic sequence breaks if only if there is a increase after decrease.
You can refer to the following code for better understanding:
Hope, this would help.
Give a like, if you are satisfied.