@linuxgal Optimization opportunity: For each word in the dictionary, set a tempo...

@argv_minus_one@mastodon.sdf.org

@linuxgal

Optimization opportunity:

For each word in the dictionary, set a temporary variable to zero.

For each character in the word, check if it's a vowel. If yes, set the corresponding bit in the temporary variable.

After checking each character, if the temporary variable equals 37 (that is, all 5 bits are 1), return true. Otherwise, if that's the end of the word, return false.

This will scan each word only once instead of 5 times, and stop scanning early if all 5 vowels are found.