Maximum power Not passing all test cases

All test cases are not passing

please tell me what i have missed i code , dont provide me your code

Hi Vivek,
pls explain ur stepwise logic…or just go through this once https://www.geeksforgeeks.org/maximum-product-subarray/
it will clear all ur doubts…

https://www.youtube.com/watch?v=VMtyGnNcdPw , i used this conceot of this video, it was for maximum subarray sum and in this question i used maximum subarray product

but both have different logic…refer my code

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.