bool UBullCowCartridge::IsIsogram(FString Word) const
{
bool Isogram = true;
for(int32 i = 0; i < Word.Len(); i++)
{
for(int32 j = 0; j < Word.Len(), j!=i ; j++)
{
if(Word[i]==Word[j])
{
Isogram = false;
}
}
}
return Isogram;
}
2 Likes
Great code!