leetcode 500,键盘行
- 先上代码
public String[] findWords(String[] words) {
String[] matches = {
"qwertyuiop", "asdfghjkl", "zxcvbnm"};
StringBuilder sb = new StringBuilder();
for (String word : words) {
String temp = word.toLowerCase();
int a = 0, b = <