by brianfry713 » Thu Jan 12, 2012 12:49 am
You need to test all 4 possibilities. The given DNA strand may be either the primary or the complementary DNA strand, and it may appear in either forward or reverse order.
This problem has a correction program that will accept any possible protein, so print any of them. For example in the test input:
TTAATACGACATAATTAT
The complement:
AAUUAUGCUGUAUUAAUA
Has the protein:
Leu-Tyr
The reverse complement:
AUAAUUAUGUCGUAUUAA
Has the protein:
Ser-Tyr
Either answer should get you AC.