Sha256: 8a574423a410a00890c624b10e4c059f000980917efad6c8e05db6f43a22d7c5

Contents?: true

Size: 367 Bytes

Versions: 396

Compression:

Stored size: 367 Bytes

Contents

using System.Collections.Generic;

public class Pangram
{
    public static bool IsPangram(string input)
    {
        var chars = new HashSet<char>();

        foreach (var c in input.ToLowerInvariant())
        {
            if (c >= 'a' && c <= 'z')
            {
                chars.Add(c);
            }
        }

        return chars.Count == 26;
    }
}

Version data entries

396 entries across 396 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/csharp/exercises/pangram/Example.cs
trackler-2.2.1.179 tracks/csharp/exercises/pangram/Example.cs
trackler-2.2.1.178 tracks/csharp/exercises/pangram/Example.cs
trackler-2.2.1.177 tracks/csharp/exercises/pangram/Example.cs
trackler-2.2.1.176 tracks/csharp/exercises/pangram/Example.cs
trackler-2.2.1.175 tracks/csharp/exercises/pangram/Example.cs
trackler-2.2.1.174 tracks/csharp/exercises/pangram/Example.cs
trackler-2.2.1.173 tracks/csharp/exercises/pangram/Example.cs
trackler-2.2.1.172 tracks/csharp/exercises/pangram/Example.cs
trackler-2.2.1.171 tracks/csharp/exercises/pangram/Example.cs
trackler-2.2.1.170 tracks/csharp/exercises/pangram/Example.cs
trackler-2.2.1.169 tracks/csharp/exercises/pangram/Example.cs
trackler-2.2.1.167 tracks/csharp/exercises/pangram/Example.cs
trackler-2.2.1.166 tracks/csharp/exercises/pangram/Example.cs
trackler-2.2.1.165 tracks/csharp/exercises/pangram/Example.cs
trackler-2.2.1.164 tracks/csharp/exercises/pangram/Example.cs
trackler-2.2.1.163 tracks/csharp/exercises/pangram/Example.cs
trackler-2.2.1.162 tracks/csharp/exercises/pangram/Example.cs
trackler-2.2.1.161 tracks/csharp/exercises/pangram/Example.cs
trackler-2.2.1.160 tracks/csharp/exercises/pangram/Example.cs