LeetCode#485 — Max Consecutive Ones — Explained Step by Step

Arrays are one of the most common data structures in coding interviews. Among the simpler but tricky problems is the Max Consecutive Ones…