← Questions

Sum of the longest run of positive numbers

0
MicrosoftCodingLast asked Jul 2025

An array holds positive and negative numbers. Find the longest contiguous run of positive numbers and return its sum (decide and state how ties between equally long runs are broken).

Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding