...

/

Solution: Max Consecutive Ones

Solution: Max Consecutive Ones

Let’s solve the Max Consecutive Ones problem using the Knowing What To Track pattern.

We'll cover the following...

Statement

You are given a binary array nums (an array that contains only 00s and 11s). Your task is to find the maximum number of consecutive 11s in the array and return it.

Constraints

  • 11 \leq ...