Skip to main content

Posts

Featured

Codechef : Problem name " DNA Storage " solution in C#

 ============================Problem Statement============================= For encoding an even-length binary string into a sequence of  A ,  T ,  C , and  G , we iterate from  left to right  and replace the characters as follows: 00  is replaced with  A 01  is replaced with  T 10  is replaced with  C 11  is replaced with  G Given a binary string  � S  of length  � N  ( � N  is even), find the encoded sequence. Input Format First line will contain  � T , number of test cases. Then the test cases follow. Each test case contains two lines of input. First line contains a single integer  � N , the length of the sequence. Second line contains binary string  � S  of length  � N . Output Format For each test case, output in a single line the encoded sequence. Note:  Output is  case-sensitive . ===========================Solution in C#======================== u...

Latest posts

Codechef : Problem name " Largest and Second Largest " solution in C#

Codechef : Problem name " Running Comparison " solution in C#