Javascript Solution


  • 0
    M
    var findWords = function(words) {
        return words.filter(keyBoardRow);
        
        function keyBoardRow(word) {
            return word.toLowerCase().match(/^([qwertyuiop]*|[asdfghjkl]*|[zxcvbnm]*)$/i);
        }
    };
    

Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.