Keyboard Row

easy
1. You will be given an Array of words 3. You need to find if any of the words can be generated using just one row of an American keyboard 4. Return such words in an array 5. Input and output is handled for you 6. It is a functional problem ,please do not modify main()

Input Format

Input is handled for you.

Output Format

Output is handled for you.

Constraints

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

Notice

Try First, Check Solution later

1. You should first read the question and watch the question video.
2. Think of a solution approach, then try and submit the question on editor tab.
3. We strongly advise you to watch the solution video for prescribed approach.

Example

Input
4
Row
topper
tweet
Pepcoding
Output
Row topper tweet
Previous
K Closest Points To Origin
Next
Key Pair

Related Questions