How do I find a maximum number of consecutive non-zero values in the array?

Really clear to understand each iteration!

1 Like