leetle

Daily challenge for 2026-03-11

435. Filter and Join Words

Given a list of strings words and a character char, return a single string containing all words from the list that start with char, joined by a hyphen '-'. If no words start with the given character, return an empty string.

Example:
Input: words = ["apple", "banana", "apricot"], char = "a"
Output: "apple-apricot"

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