Tap here to switch tabs
Problem
Submissions

Problem: Find Words Containing Character

Try to solve the Find Words Containing Character problem.

Statement

You are given a 00 indexed array of strings words and a character x.

Return an array of indices representing the words in words that contain the character x.

Constraints:

  • 1≤1 \leq words.length ≤50\leq 50

  • 1≤1 \leq words[i].length ≤50\leq 50

  • x is a lowercase English letter.

  • words[i] consists only of lowercase English letters.

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Find Words Containing Character

Try to solve the Find Words Containing Character problem.

Statement

You are given a 00 indexed array of strings words and a character x.

Return an array of indices representing the words in words that contain the character x.

Constraints:

  • 1≤1 \leq words.length ≤50\leq 50

  • 1≤1 \leq words[i].length ≤50\leq 50

  • x is a lowercase English letter.

  • words[i] consists only of lowercase English letters.