My go at the isogram checker

bool UBullCowCartridge::IsIsogram(FString Word) const
{
    for(int32 Index=0;Index<Word.Len();Index++)
    {
        for(int32 Checker=Index+1;Checker<Word.Len();Checker++)
        {
            if (Word[Index]==Word[Checker])
            {
                return false;
            }      
        }
    }
    return true;
}

This is my go at an isogram checker before watching the solution. Surprisingly, it actually works!

1 Like

Fantastic job :star:

1 Like

Privacy & Terms