it seem working fine. i was about to make something more difficult but it seemed to much for me so i looked up this solution witch was easier but not so much different from what i wanted. (witch probably wouldn’t worked
1 Like
Thanks for sharing, and good to have you on the course
Here is my solution for IsIsogram
bool FBullCowGame::IsIsogram(FString Word) const
{
if (Word.length() <= 1) {
return true;
}
TMap<char, bool> LetterSeen;
for (auto Letter : Word) {
Letter = tolower(Letter);
if (LetterSeen[Letter]) {
return false;
}
else {
LetterSeen[Letter] = true;
}
}
return true;
}