(WSQ11) Yo soy 196

After a brain-burning-process, I finally got it. After some appointments to Ken’s office and tons of coffee, Yo soy 196 is here.

wsq1101

First of all, we shall create functions that will help us to find which number is a palindrome, which one can become one and which one is a Lycherel number.

The second part is a BIG piece of code. Here it is:

wsq1102

From line 13 to line 21 I created three lists to add the values depending on it’s category. And of course, I wrote the inputs to get our upper and lower bound to evaluate the range between them.

And trust me, there´s no better way to explain the following lines than with a flowchart, a magical flowchart:wsq1103.png

yosoy196image

Last lines are written to print the results.

wsq1103

 

CC BY-SA 4.0 (WSQ11) Yo soy 196 by paogarcia2401 is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.