WSQ11 «Yo soy 196»

loading

Okay… this was hard. So hard I do not even know how to explain. We had to make a program that could count a range of numbers and if the numbers between each range are either Lychrel or non-Lychrel or possible Lychrel candidates. Here is Ken’s post, so you can take a closer look.

My brain in melted at the moment because of this WSQ, so here is the code and remember to check my GitHub for a closer look since a screenshot does not covers the hole code.  In simple words we had to use a code similar to the palindrome WSQ since that is what Lychrel numbers are about. Compare a number as a string to its inverse then add those two and compare if the inverted of the total of the sum is a palindrome or not. If it is not a palindrome then counted as a non-palindrome and then the program repeats. This seems infinite right? Well Ken allowed us to put a restriction at the 30 iterations.

wsq011

Now that we have finished, lets cheer up with one of Jack Dolgen’s song. This one is called ‘Daytime’ as part of his album Maricopa, released in 2010. This album was introduced to me in a How I Met Your Mother episode. Daytime appears in season 7 episode 14 ’46 minutes’;  however, «I Will Come For You» appears in Season 6 Episode 19  ‘Legendaddy’ when Barney shares his sadness about his absent father.

jack dolgen

Deja un comentario