Arrays

Max Consecutive Ones

easy
Given a binary array `nums`, return the maximum number of consecutive 1s.
Hint steps(0/1 revealed)
  1. 1

    Complete previous step or reveal to unlock this hint.