Solution: DNA Sequence Slicer

Review the solution for allocation-free text parsing and string construction.

Solution: DNA Sequence Slicer

Review the solution for allocation-free text parsing and string construction.
C# 14.0
var analyzer = new DnaAnalyzer();
string dnaData1 = "GATCGTACGATCGATTATACGATCGTAGCTAGCTGAC";
string dnaData2 = "ATCGTATA";
string dnaData3 = "CGTATAGGGGGCCCCCT";
string dnaData4 = "GATCGTACGATCGAT";
Console.WriteLine($"Test 1: {analyzer.ProcessSequence(dnaData1, "TATA")}");
Console.WriteLine($"Test 2: {analyzer.ProcessSequence(dnaData2, "TATA")}");
Console.WriteLine($"Test 3: {analyzer.ProcessSequence(dnaData3, "TATA")}");
Console.WriteLine($"Test 4: {analyzer.ProcessSequence(dnaData4, "GGC")}");