leetle

Daily challenge for 2026-02-09

405. Sum of Positive Array Elements

Given an array of integers, return the sum of all positive numbers in the array. If the array is empty or contains no positive numbers, return 0.

Example:
Input: arr = [1, -4, 7, 12]
Output: 20

Run this challenge interactively in Python or JavaScript when the app loads.