Skip to content

Latest commit

 

History

History
56 lines (30 loc) · 883 Bytes

File metadata and controls

56 lines (30 loc) · 883 Bytes

中文文档

Description

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.

 

 

Example:

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

Output: ["Alaska", "Dad"]

 

Note:

  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.

Solutions

Python3

Java

...