Keyboard Row
Easy
Strings
Array
Hash Table
String
Return words that can be typed using letters of only one row of an American keyboard.
Constraints
1 ≤ words ≤ 20
Examples
Example 1:
Input: Hello Alaska Dad Peace
Output: Alaska Dad
Example 2:
Input: omk
Output:
Tests:
Runtime:
Memory:
Test
Input:
Expected:
Got:
Click Run Code to test against sample cases, or Submit to test against all cases.
▲ Console