79543555

Date: 2025-03-29 16:38:49
Score: 1
Natty:
Report link
public static bool HasUniqueChars(string input)
{
    HashSet<char> chars = new HashSet<char>();

    foreach (char ch in input)
    {
        if (chars.Contains(ch))
        {
            return false;
        }
        else
        {
            chars.Add(ch);
        }
    }

    return true;
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: temaxx