IsIsogram() function

Wrote this code for the isogram check already, seems to work perfectly fine.

bool UBullCowCartridge::IsIsogram(FString Word)
{
    for (int32 i{0}; i<Word.Len(); ++i)
    {
        for (int32 j{0}; j<Word.Len(); ++j)
        {
            if (i != j && Word[i] == Word[j]) return false;
        }
    }
    return true;
}
1 Like

Great job!

This is how I wrote the IsIsogram function.

image

Privacy & Terms