.. _leetcode-0485: ========================================= :badge:`EASY,badge-info` 0485. Max Consecutive Ones ========================================= ------------------------- Problem Statement ------------------------- `Leetcode Link `_ -------------------------- Examples -------------------------- --------------------- Solution --------------------- .. literalinclude:: solution.py :caption: Solution :linenos: :language: python