GUPTA MECHANICAL

IN THIS WEBSITE I CAN TELL ALL ABOUT TECH. TIPS AND TRICKS APP REVIEWS AND UNBOXINGS ALSO TECH. NEWS .............

Friday, 24 June 2022

[Solution] Complementary Strand in a DNA CodeChef Solution 


You are given the sequence of Nucleotides of one strand of DNA through a string S of length NS contains the character A,T,C, and G only.

Chef knows that:

  • A is complementary to T.
  • T is complementary to A.
  • C is complementary to G.
  • G is complementary to C.

Using the string S, determine the sequence of the complementary strand of the DNA.

Input Format

  • First line will contain T, number of test cases. Then the test cases follow.
  • First line of each test case contains an integer N - denoting the length of string S.
Solution Click Below:-  👉CLICK HERE👈
👇👇👇👇👇

  • Second line contains N characters denoting the string S.

Output Format

For each test case, output the string containing N characters - sequence of nucleotides of the complementary strand.

Fitness CodeChef Solution

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

AP Grid CodeChef Solution

Gcd and Lcm CodeChef Solution

The Subarray XOR CodeChef Solution

Constraints

  • 1T100

No comments:

Post a Comment