CPlusPlus/Strings/amazing_subarrays.cpp
bool isSpecial(char a){
    //We convert the character to lower to avoid having unnecessary if conditions
    a = tolower(a);
    if(a==97 || a==101 || a==105 || a==111 || a==117) {
        return true;
    }
    return false;
}
//This method identifies if the passed character is a vowel
This method identifies if the passed character is a vowel
This method identifies if the passed character is a vowel
bool isSpecial(char a){
    a = tolower(a);
    if(a==97 || a==101 || a==105 || a==111 || a==117) {
        return true;
    }
    return false;
}
bool isSpecial ( char a ) { a = tolower ( a ) ; if ( a == 97 || a == 101 || a == 105 || a == 111 || a == 117 ) { return true ; } return false ; }
This method identifies if the passed character is a vowel
This method identifies if the passed character is a vowel
//We convert the character to lower to avoid having unnecessary if conditions