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!