<h3 class='likesectionHead' id='consecutive-search-for-discount-prices'><a id='x1-1000'></a>Consecutive Search for Discount Prices</h3>

The examples used here are from the weekly challenge problem statement and demonstrate the working solution. Part 1: Consecutive One You are given a binary array containing only 0 or/and 1. Write a script to find out the maximum consecutive 1 in the given array. The core of the solution is contained in a main loop. The resulting code can be contained in a single file. "ch-1.pl" 1 ≡ use v5.40; ⟨…