I know the challenge was to use nested for loops but I seem to have the same outcome (game works by adding just the one line, to increment Index on each loop so I ended up with:
for (int32 Index = 0, Comparison = Index + 1; Comparison < Word.Len(); Comparison++)
{
if (Word[Index] == Word[Comparison])
{
return false;
}
Index++;
}
Is there a reason not to do it that way? The nested loops seemed overly complicated for a relatively straight forward solution but maybe I’m missing something in my result that is bad practice.