for (int32 Index = 0; Index+1 < Word.Len(); Index++)
{
FString Temp = Word;
Temp.RemoveAt(Index);
if (Temp.GetCharArray().Contains(Word[Index]))
{
return false;
}
}
not sure how FString::RemoveAt works by default (if it resizes the array or not, and how - if it does, I expect it’s by copying the elements one by one, which means more iterations). but even without considering that, doesn’t that Contains() method do iterations through the TCHAR array? I can’t really find documentation for that method, but I expect that’s how it works.