Avatar


algorithm

ROT13 cypher decoder in Ruby

Feb 4, 2020


I have just started learning Ruby for personal interest following the Hackerrank section available for practice. If you want you can visit the page here and start solving challenges. This small article describes one of the challenges I have solved about a ROT13 cypher decoder. Basically, ROT13 is a simple letter substitution cipher that replaces a letter with the 13th letter after it, in the alphabet. [more info] Follows my solution to the challenge on Hackerrank Ruby practice. Read More…

RPN calculator in Python

Dec 17, 2019


A week ago, I did an interview for an R&D position in a company. Apart from some other technical and logical tasks, I was asked to implement a simple rpn calculator, with the basic operators: sum, subtraction, product, division and square root. For those who don’t know what an rpn is follows a brief description from the beginning. Infix notation Infix notation is the notation commonly used in arithmetical and logical formulae and statements. Read More…