Sha256: 3191c6a8acb69220269e8d46db856a50d3fadb72050de7464bd4ccf58d27de6b

Contents?: true

Size: 388 Bytes

Versions: 230

Compression:

Stored size: 388 Bytes

Contents

using System.Collections.Generic;
using System.Linq;

public class Complement
{
    private static readonly Dictionary<char, char> DnaToRna = new Dictionary<char, char>
        {
            { 'G', 'C' }, { 'C', 'G' }, { 'T', 'A' }, { 'A', 'U' }
        };

    public static string OfDna(string nucleotide)
    {
        return string.Concat(nucleotide.Select(x => DnaToRna[x]));
    }
}

Version data entries

230 entries across 230 versions & 1 rubygems

Version Path
trackler-2.2.1.12 tracks/csharp/exercises/rna-transcription/Example.cs
trackler-2.2.1.11 tracks/csharp/exercises/rna-transcription/Example.cs
trackler-2.2.1.10 tracks/csharp/exercises/rna-transcription/Example.cs
trackler-2.2.1.9 tracks/csharp/exercises/rna-transcription/Example.cs
trackler-2.2.1.8 tracks/csharp/exercises/rna-transcription/Example.cs
trackler-2.2.1.7 tracks/csharp/exercises/rna-transcription/Example.cs
trackler-2.2.1.6 tracks/csharp/exercises/rna-transcription/Example.cs
trackler-2.2.1.5 tracks/csharp/exercises/rna-transcription/Example.cs
trackler-2.2.1.4 tracks/csharp/exercises/rna-transcription/Example.cs
trackler-2.2.1.3 tracks/csharp/exercises/rna-transcription/Example.cs
trackler-2.2.1.2 tracks/csharp/exercises/rna-transcription/Example.cs
trackler-2.2.1.1 tracks/csharp/exercises/rna-transcription/Example.cs
trackler-2.2.1.0 tracks/csharp/exercises/rna-transcription/Example.cs
trackler-2.2.0.6 tracks/csharp/exercises/rna-transcription/Example.cs
trackler-2.2.0.5 tracks/csharp/exercises/rna-transcription/Example.cs
trackler-2.2.0.4 tracks/csharp/exercises/rna-transcription/Example.cs
trackler-2.2.0.3 tracks/csharp/exercises/rna-transcription/Example.cs
trackler-2.2.0.2 tracks/csharp/exercises/rna-transcription/Example.cs
trackler-2.2.0.1 tracks/csharp/exercises/rna-transcription/Example.cs
trackler-2.2.0.0 tracks/csharp/exercises/rna-transcription/Example.cs