qwertyuiop
- middle: asdfghjkl
- bottom: zxcvbnm
Given a list of words words, return the ones that can be typed without leaving a single row, in their original order. Uppercase and lowercase versions of a letter count as the same key.words=["Typewriter", "Flask", "Mango", "Zebra"] → ['Typewriter', 'Flask']
Every letter of Typewriter is on the top row and every letter of Flask on the middle row. Mango and Zebra mix rows.
words=["ZZ", "Quiz"] → ['ZZ']
ZZ lies entirely on the bottom row, while the z in Quiz is on a different row from the rest.
words=["Typewriter", "Flask", "Mango", "Zebra"]
['Typewriter', 'Flask']
Run checks the first 3 tests in your browser. Submit checks all 80 tests on the server, hidden ones included.