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:
▲ Console
📱

Install Talent Enrich

Get instant access to jobs and career tools on your device.