IsIsogram, this is how i did it

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

Privacy & Terms