The code is failing for 3 test cases. This is my code.
Can you help me where is it going wrong?
The code is failing for 3 test cases. This is my code.
Can you help me where is it going wrong?
Hey @govilayush
Dont update your store if max_len==current subarray length
only update store when u get a bigger subarray
Question is missing update the first longest possible subarray of 1s.
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.