Max Consecutive Ones

Try to solve the Max Consecutive Ones problem.

Statement

You are given a binary array nums (an array that contains only 00s and 11 ...

Ask