Advertisement
gronke

Untitled

Jul 24th, 2016
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. Take input of long ass string
  2.  
  3. while analyzing string
  4. find instance of "ATG" in string
  5. find instance of "TAG" in string
  6. are the number of characters between ATG and TAG divisible by 3?
  7. if yes break and print string from ATG to TAG
  8. if not continue
  9. find instance of "TGA" in string
  10. are the number of characters between ATG and TGA divisible by 3?
  11. if yes break and print string from ATG to TGA
  12. if not continue
  13. find instance of "TAA" in string
  14. are the number of characters between ATG and TAA divisible by 3?
  15. if yes break and print string from ATG to TAA
  16. if not continue
  17. if reached end of string break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement