Latest posts
March 3, 2020 - John
In my last post, we explored different approaches to solving a DNA transcriber that gave back the corresponding RNA sequence to any given DNA string.
As a refresher, DNA is represented by four characters, G, C, T and A, while each character has a corresponding RNA match: C, G, A and U.
Read More…
February 24, 2020 - John
I’ve been trying a set of exercises from exercism.io and came across one that took me a bit longer than I expected. We are given a strand of DNA, and for each of its letters, we need to return its corresponding RNA sequence. DNA is made out of four nucleotides, adenine (A), cytosine (C), guanine (G) and thymine (T). For each one of them, there is a corresponding RNA nucleotide: adenine (A), cytosine (C), guanine (G) and uracil (U).
Read More…
February 17, 2020 - John
For today’s excercise, we are given as string and our job is to find out whatever characters have a duplicate.
Read More…
February 12, 2020 - John
For today’s exercise, we are given a paragraph in the form of a very long string. We are also instructed to have each line be no longer than 30 characters including spaces and punctuation. Also, words cannot wrap lines and each line must end in a word or a word with its respective punctuation. In addition to that, the spaces on the same line must be spread evenly between words.
Read More…
February 4, 2020 - John
For this simple exercise, we are given two strings. Our job is to find out if the second string is contained within the first one and return the index at which it occurs:
Read More…