Skip to content

3136. Valid Word #1930

Answered by mah-shamim
mah-shamim asked this question in Q&A
Jul 15, 2025 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

We need to determine if a given word meets specific criteria for validity. The criteria are:

  1. The word must contain at least 3 characters.
  2. The word must consist only of digits (0-9) and English letters (both uppercase and lowercase).
  3. The word must include at least one vowel (a, e, i, o, u, or their uppercase counterparts).
  4. The word must include at least one consonant (any English letter that is not a vowel).

Approach

  1. Check Length: First, verify if the word's length is at least 3 characters. If not, the word is invalid.
  2. Check Valid Characters: Ensure all characters in the word are either digits (0-9) or English letters (both uppercase and lowercase). If any character fails this check (li…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@basharul-siddike
Comment options

@mah-shamim
Comment options

mah-shamim Jul 15, 2025
Maintainer Author

Answer selected by basharul-siddike
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants