WSQ08 – Yo Soy 196

I finally finished this WSQ, and now that I’ve done it I don’t think is that difficult. Is a challenge, but by no means impossible.

Here’s my code.

One thing that I had wrong at first was the fact that numbers that COULD become a palindrome before 30 iterations but where too long for “int” to represent them correctly were appearing as lychrel numbers. (89 for example)

I fixed that problem by using “long” instead of “int”.

If you have any questions, feel free to ask me anytime:)

Leave a comment