leetle

Daily challenge for 2026-04-15

470. Filtered Word Length Sum

Given an array of strings words and a single character target, calculate the total length of all strings in the array that do not contain the target character. If all strings contain the character, return 0.

Example:
Input: words = ["apple", "banana", "cherry"], target = "a"
Output: 6
Explanation: "apple" and "banana" contain 'a'. "cherry" does not. The length of "cherry" is 6.

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