Tap here to switch tabs
Problem
Submissions

Problem: Keyboard Row

med
30 min
Try to solve the Keyboard Row problem.

Statement

Given an array of strings words, return all strings that can be typed using letters from only one row of an American keyboard.

You may return the strings in any order.

Note: Letter matching is case insensitive.

Constraints:

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

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

  • words[i] consists of English letters, both lowercase and uppercase.

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Keyboard Row

med
30 min
Try to solve the Keyboard Row problem.

Statement

Given an array of strings words, return all strings that can be typed using letters from only one row of an American keyboard.

You may return the strings in any order.

Note: Letter matching is case insensitive.

Constraints:

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

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

  • words[i] consists of English letters, both lowercase and uppercase.