Solution: Valid Word
C# solution for the Valid Word problem using the Knowing What to Track pattern.
We'll cover the following...
We'll cover the following...
Statement
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
wordis at least. wordcontains at least one vowel character.wordcontains at least one consonant character.Every character in
wordis 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.
...