[Solution] Complementary Strand in a DNA CodeChef Solution
You are given the sequence of Nucleotides of one strand of DNA through a string of length . contains the character and only.
Chef knows that:
- is complementary to .
- is complementary to .
- is complementary to .
- is complementary to .
Using the string , determine the sequence of the complementary strand of the DNA.
Input Format
- First line will contain , number of test cases. Then the test cases follow.
- First line of each test case contains an integer - denoting the length of string .
👇👇👇👇👇
- Second line contains characters denoting the string .
Output Format
For each test case, output the string containing characters - sequence of nucleotides of the complementary strand.
Complementary Strand in a DNA CodeChef Solution
Make all equal using Pairs Codechef Solution
Count the ACs CodeChef Solution
Strong Elements CodeChef Solution
Reversal Sorting CodeChef Solution
The Subarray XOR CodeChef Solution
No comments:
Post a Comment