Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

< Previous                  Next >

500. Keyboard Row (Easy)

Given a List of words, return the words that can be typed using letters of alphabet on only one row's of American keyboard like the image below.




Input: ["Hello", "Alaska", "Dad", "Peace"]
Output: ["Alaska", "Dad"]



  1. You may use one character in the keyboard more than once.
  2. You may assume the input string will only contain letters of alphabet.

Related Topics

[Hash Table]

You can’t perform that action at this time.