Easy
Quiz
#500 Keyboard Row
APPROACH
Given an array of strings words, return the words that can be typed using letters of the alphabet on only one row of an American QWERTY keyboard. The check is case-insensitive.
In the American keyboard:
- the first row consists of the characters "qwertyuiop",
- the second row consists of the characters "asdfghjkl", and
- the third row consists of the characters "zxcvbnm".
1 of 4
1:00
What is the optimal approach for this problem?