#3136
Valid Word
pupil · 465 · lc easy +26 · 50.9% accepted · 480 likes · top 39%
Description
A string word is valid when it has at least 3 characters, consists only of letters (a–z, A–Z) and digits (0–9), contains at least one vowel, and contains at least one consonant. Return true if word is valid, false otherwise.
Code
1
2
3