Hello,
I’m wondering if the check could be as simple as this one I’ve written?
bool FBullCowGame::IsWordIsogram(FString word) const{
for (int i = 0; i < word.length(); i++) {
for (int j = i + 1; j < word.length(); j++) {
if (word[i] == word[j]) {
return false;
}
}
}
return true;
}
Cheers,
Robert