File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
src/main/java/com/fishercoder/solutions Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
package com .fishercoder .solutions ;
2
2
3
-
4
3
import java .util .ArrayList ;
5
4
import java .util .Arrays ;
6
5
import java .util .HashSet ;
7
6
import java .util .List ;
8
7
import java .util .Set ;
9
8
10
9
/**
10
+ * 500. Keyboard Row
11
+ *
11
12
* 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.
12
- * <p>
13
- * <p>
13
+ *
14
14
* American keyboard
15
- * <p>
16
- * <p>
15
+ *
17
16
* Example 1:
18
17
* Input: ["Hello", "Alaska", "Dad", "Peace"]
19
18
* Output: ["Alaska", "Dad"]
19
+ *
20
20
* Note:
21
21
* You may use one character in the keyboard more than once.
22
22
* You may assume the input string will only contain letters of alphabet.
You can’t perform that action at this time.
0 commit comments