Given a string word, determine whether it is a valid word.
A string word is considered valid if all of the following conditions are true:
The length of word is at least
word contains at least one vowel character.
word contains at least one consonant character.
Every character in word is an English letter (uppercase or lowercase) or a digit.
Return true if word is valid, otherwise return false.
Note: Vowels are
a,e,i,o,u(case insensitive). Consonants are English letters that are not vowels.
Constraints:
word.length
word consists of English uppercase and lowercase letters, digits, '@', '#', and '$'.
Given a string word, determine whether it is a valid word.
A string word is considered valid if all of the following conditions are true:
The length of word is at least
word contains at least one vowel character.
word contains at least one consonant character.
Every character in word is an English letter (uppercase or lowercase) or a digit.
Return true if word is valid, otherwise return false.
Note: Vowels are
a,e,i,o,u(case insensitive). Consonants are English letters that are not vowels.
Constraints:
word.length
word consists of English uppercase and lowercase letters, digits, '@', '#', and '$'.