Daily challenge for 2026-01-05
370. String Array Element Sum
Given an array of strings, where each string represents an integer, return the sum of all these integers. If any string cannot be parsed as an integer, treat it as 0 for the summation. The input array will only contain strings composed of digits or potentially invalid characters that should result in a 0 parse.
Example:Input: arr = ["10", "5", "abc", "2"]Output: 17
Run this challenge interactively in Python or JavaScript when the app loads.