IsIsogram

bool FBullCowGame::IsIsogram(FString Guess) const
{
TMap<char, bool> myMap;
for (unsigned int i = 0; i < Guess.length(); i++)
{
Guess[i] = tolower(Guess[i]);
if (myMap.count(Guess[i]))
{
return false;
}
else
{
myMap[Guess[i]] = true;
}
}
return true;
}

Privacy & Terms