My Isogram function (Part 1)

Hi there! :slight_smile:

Here is my updated code for the Isogram!

bool UBullCowCartridge::IsIsogram(FString word) const
{
    for (int Index = 0, Comparison = Index + 1; Comparison < word.Len(); Comparison++)
    {
        if (word.IsValidIndex(Comparison))
        {
            if (word[Index] == word[Comparison])
            {
                return true;                
            } 
        }         
    }

    return false;
}
1 Like

Awesome! How do you feel about your code?

1 Like

Thank you, Kevin.
Iā€™m getting fun coding! :slight_smile:

Privacy & Terms