leetle

Daily challenge for 2026-04-05

460. String Array Character Count

Given an array of strings words and a single character char, return the total count of how many times char appears across all strings in the array. The comparison should be case-sensitive.

Example:
Input: words = ["apple", "banana", "cherry"], char = "a"
Output: 4 (2 in "apple", 3 in "banana", 0 in "cherry". Wait, 1 in "apple", 3 in "banana". Total 4)

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