Daily challenge for 2026-07-01
547. Alternate Digit Summation
Given a string s consisting of digits and lowercase English letters, find the sum of all digits that appear at even indices in the string. If there are no digits at even indices, return 0.
Example:Input: s = "a1b2c3"Output: 0
Explanation: The digits 1, 2, and 3 are at indices 1, 3, and 5 (all odd).
Run this challenge interactively in Python or JavaScript when the app loads.