isogram c code example
Example: isogram c
// Function to check
// if a given string is isogram or not
string is_isogram(string str)
{
int len = str.length();
// Convert the string in lower case letters
for (int i = 0; i < len; i++)
str[i] = tolower(str[i]);
sort(str.begin(), str.end());
for (int i = 0; i < len; i++) {
if (str[i] == str[i + 1])
return "False";
}
return "True";
}