Loading...
Loading...
Cookie choices
WoHoTech uses essential cookies for login and site features. Non-essential analytics and advertising scripts load only after you accept them.
Read privacy policyGiven an integer array `nums`, return the sum of all positive values. Ignore zero and negative values.
Example 1
Input: nums = [-2, 5, 0, 3] Output: 8