Latest posts



Algorithm practice: The RNA transcriber

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…



Algorithm practice: justify a paragraph

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…