Biotonic Array Question Implementation

Here is the code of the biotonic Array :- https://ide.codingblocks.com/s/410965, Please specify what is the error in the code because all the input testcases aren’t passing.

Hello @Sakshi2004 please wait i am checking your code:

@Sakshi2004 check this:


if you have any doubt you can ask here:
Happy Learning!!

May I know the changes made in the code because the output is coming to be only the first element being printed, the number of elements in the array, times.

@Sakshi2004
if(a[i-1] <= a[i]) this line should also consider for the same elements because that will also be counted in the increasing sequence.
i have added = here:
Happy Learning!!

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.