All Posts
Leetcode 3136: Valid Word
You are given a string word. The word is considered valid if it satisfies the following conditions:
- It contains at least 3 characters.
- It contains only digits (0-9) and English letters (both uppercase and lowercase).
- It must include at least one vowel (‘a’, ’e’, ‘i’, ‘o’, ‘u’ and their uppercase counterparts).
- It must include at least one consonant (an English letter that is not a vowel).
Return true if the word is valid, otherwise return false.