QUICK

QUICK

YOU HAVE TEN SECONDS TO WRITE A FUNCTION IN YOUR FAVORITE PROGRAMMING LANGUAGE THAT COUNTS THE NUMBER OF WORDS IN A GIVEN STRING WITH TWO OR MORE EQUAL VOWELS

"TOO" => two 'O' => count++
"TO" => one 'O' => doesn't count
"BIRDIE" => two 'I' => count++

OR THIS BIRD IS GOING TO STAB YOU

Attached: 1520888289684.jpg (412x430, 24K)

FUCKING EFFICIENT C MAGIC

#include
#include
#include
#include

int main() {
char* str = "YOU HAVE TEN SECONDS TO WRITE A FUNCTION IN YOUR FAVORITE PROGRAMMING LANGUAGE THAT COUNTS THE NUMBER OF WORDS IN A GIVEN STRING WITH TWO OR MORE EQUAL VOWELS";
int vowels[] = {0, 0, 0, 0, 0};
int count = 0;

for(int n = 0; n = 2) {
count++;
break;
}
}

memset(vowels, 0, sizeof vowels);
}
}

printf("%d\n", count);

return EXIT_SUCCESS;
}

you stupid retard, we aren't going to do your cs homework.

IT'S NOT HOMEWORK YOU FOOL
AND YOU HAVE NO CHOICE

Attached: knife.jpg (4256x2832, 593K)

...

for (int i = 0; i < 100; i++) {
if (i % 3 && i % 5) {
printf("%d\n", i);
continue;
}
if (!(i % 3))
printf("Fizz");
if (!(i % 5))
printf("Buzz");
putchar('\n');
}

BIRDMIN NO

var vStr = "QUICK YOU HAVE TEN SECONDS TO WRITE A FUNCTION IN YOUR FAVORITE PROGRAMMING LANGUAGE THAT COUNTS THE NUMBER OF WORDS IN A GIVEN STRING WITH TWO OR MORE EQUAL VOWELS";

var vArray = vStr.split('').filter(x => {
if (x === ' ') {
return false;
} else {
return true;
}
});

var vVowelCount = 0;
var vVowels = ['a','e','i','o','u'];

vArray.forEach(x => {
if (vVowels.indexOf(x.toLowerCase()) >= 0 ) {
vVowelCount++;
}
});

console.log(vVowelCount);

import re
count = sum(len(re.findall(r'([aoeiu]).*\1', w)) > 0 for w in s.split())
print(count)

good effort
count = len(re.findall('([aeiou])',s, re.I))