# C#LeetCode刷题之#500-键盘行（Keyboard Row）

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.

Note:

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

```public class Program {

public static void Main(string[] args) {

var res = FindWords(words);
ShowArray(res);

}

private static void ShowArray(string[] array) {
foreach(var num in array) {
Console.Write(\$"{num} ");
}
Console.WriteLine();
}

public static string[] FindWords(string[] words) {
var res = new List<string>();
var line = new List<List<char>>() {
new List<char> { 'q', 'w', 'e', 'r', 't', 'y', 'u', 'i', 'o', 'p' } ,
new List<char>{ 'a', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l' },
new List<char>{ 'z', 'x', 'c', 'v', 'b', 'n', 'm' }};
foreach(var word in words) {
var list = new HashSet<int>();
foreach(var item in word) {
for(var i = 0; i < 3; i++) {
}
if(list.Count > 1) break;
}
if(list.Count == 1) {
}
}
return res.ToArray();
}

}```

`Alaska Dad`