Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

write the solution to the following problem in java Problem Statement Write code to find which of the strands representing DNA in an array stringl)

write the solution to the following problem in java
image text in transcribed
Problem Statement Write code to find which of the strands representing DNA in an array stringl) strand representing strands of DNA has the most occurrences of the nucleotide represented by parameter nue. If more than one strand has the same moximal number of the specified nucleotide you should return the longest strand with the maximal number. AIl DNA strands have different lengths in this problem so the maximal strand will be unique when length is accounted for. Return this uniquely maximal strand. Each String representing a DNA strand will contain only cytosine, guanibe, thymine, and adenine, represented by the characters 'e', 'g', T ', and ' a ', respectively. If no strand in the array contains the specified nucleotide return the empty string . Constraints - strande will contain mo more than 90 elements, cach element will be a different length and the characters of the the strings will only be 'a', ' g ', ' t ', or 'C'. - nue will be a one character string, either 4a4,g4,77, or c, Examples I. stranda = ("age", "ange", "taatet, "cestg") zoe = "a: Returns: "taant" since both "aagt" and "taate" have two occurrences of 'a', but "taant" is longer

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle 10g SQL

Authors: Joan Casteel, Lannes Morris Murphy

1st Edition

141883629X, 9781418836290

More Books

Students also viewed these Databases questions