Reddit Easy Challenge #312

Today’s easy challenge was to write a convertor between 90’s ‘leet-speak’ and english. A pretty simple challenge. As with all easy challenges I choose PASCAL as my weapon of choice.

The basic implementation was through a single function that converted between characters sets one at a time:
userout := Concat(userout, Convert(userin[idx]));

The first task was to deal with leet character that are made of multiple symbols ( (\) = N ):

I then looped through three arrays of characters doing 1:1 comparisions and spitting out the oposite charater to the one entered:

Leave a Reply

Your email address will not be published. Required fields are marked *