Sum of the longest run of positive numbers

0
Remix

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).

MicrosoftTechnical phone screenLast asked Jul 2025
No answer yet. Write the first one; the best answer gets endorsed.