Tag Archives: #WSQ11

WSQ11

Lycherel numbers!: the most confusing wsq so far!


https://github.com/grgc25/Tareas/blob/master/WSQ11_Lychrel.py

Yo soy 196!! – C++

This was the hardest wsq till today, I needed to aks for help to lots of people and the teacher. You need to put attention to how to convert a Big integer to string and string to big integer. And my main problem was in main function. I did it well but I forgott to do a loop until 30 times to do the non-lychrel numbers. You can take a look into m GitHub and this photo.

Also you can ask me for help 🙂

Still having problems with #WSQ11 Yo soy 196, but here’s the link to my code on Github https://github.com/Auralgo/-TC1017/blob/master/palind.cpp #TC1017

Still having problems with Yo soy 196, but here's the link to my code on Github https://github.com/Auralgo/-TC1017/blob/master/palind.cpp

Learn To Program 2015-04-06 19:48:00

WSQ11

Los palíndromos son  palabras, numeros o frases que se leen igual de adelante hacia atrás, como de atrás hacia adelante.Si se trata de un número se llama cupicúa.

El numero de Lycherel es un número natural que no forma un palindromo a través de un proceso interactivo de invertir sus digitos y sumar los numeros restantes. Se le llama algoritmo 196 a raiz del numero de Lychrel más pequeño y mas famoso.

Consulté la siguiente información para entender sus conceptos.
http://es.wikipedia.org/wiki/Pal%C3%ADndromo
http://es.wikipedia.org/wiki/N%C3%BAmero_de_Lychrel

Este programa ha sido el más dificil hasta ahora. Su comprensión resulta complicada al momento de hacer el programa. Tuve que leer un programa de mis compañero de clase para poder entenderlo. El programa que yo estoy cargando, es el mismo que el de mi compañero, con la diferencia que yo anoté el significado de las lineas del codigo. Las páginas de donde obtuve el codigo son:
https://digiart.withknown.com/2015/yo-soy-196
https://github.com/PablOCVi/WSQ/blob/master/WSQ11.py

Ahora soy capaz de entender el algoritmo muy bien, ademas que aprendi algunas funcionalidades en python que desconocía.

**********************
Programa hecho en Python:
**********************
https://github.com/A01630323/Learn-To-Program/blob/master/WSQ11.py

Learn To Program 2015-04-06 19:48:00

WSQ11

Los palíndromos son  palabras, numeros o frases que se leen igual de adelante hacia atrás, como de atrás hacia adelante.Si se trata de un número se llama cupicúa.

El numero de Lycherel es un número natural que no forma un palindromo a través de un proceso interactivo de invertir sus digitos y sumar los numeros restantes. Se le llama algoritmo 196 a raiz del numero de Lychrel más pequeño y mas famoso.

Consulté la siguiente información para entender sus conceptos.
http://es.wikipedia.org/wiki/Pal%C3%ADndromo
http://es.wikipedia.org/wiki/N%C3%BAmero_de_Lychrel

Este programa ha sido el más dificil hasta ahora. Su comprensión resulta complicada al momento de hacer el programa. Tuve que leer un programa de mis compañero de clase para poder entenderlo. El programa que yo estoy cargando, es el mismo que el de mi compañero, con la diferencia que yo anoté el significado de las lineas del codigo. Las páginas de donde obtuve el codigo son:
https://digiart.withknown.com/2015/yo-soy-196
https://github.com/PablOCVi/WSQ/blob/master/WSQ11.py

Ahora soy capaz de entender el algoritmo muy bien, ademas que aprendi algunas funcionalidades en python que desconocía.

**********************
Programa hecho en Python:
**********************
https://github.com/A01630323/Learn-To-Program/blob/master/WSQ11.py

Yo soy 196 – WSQ11

YoSoy196

The source code is in GitHub.

This program asks the user for the two boundaries of a range and then the program starts calculating for each value if it’s a palyndrome. 

For this the function check_palyndrome( ) is created. The function first saves the orignial number in form of a string. Once we have an String it’s very easy to reverse it. 

If you have a String you can treat it as a list, so if you want to reorder it you can use the [::-1], notation after it. What it does is position itself in the last index, and start decrementing it, thus writting the string backwards. This is also saved in a different variable. 

If the String and it’s reverse are the same, the function returns the value 0; wich in the main program is interpretated as adding 1 to the natural palyndromes count.

If they are not the same, then we take the reversed String and parse it into an int, and then add it to the original number. And update the palyndrome that we whant to check as the result of this sum. Then the process is repeated. If the String and it’s reverse are the same before the 30th try, the function returns a 1; which is the indicator for adding one to the non-Lychrels numbers.

If after the 30th try the String and its reverse are not the same, then we categorize it as a Lychrel’s number. So the function prints the message: “Found a Lychrel number: “with the number before returning a 2 that increments the Lychrels numbers count. 

The [::-1] notation is better explained here, as extended slice notation.

This is my of my .

WSQ11

I have completed the 11th WSQ!! Here is a link to the code via GitHub: WSQ11

I have also included pictures of my code

YO SOY 196

Wsq 11

Yo Soy 196

Helpfull Sources:
http://en.wikipedia.org/wiki/Palindrome
http://www.p196.org/
Github Link to my code:
https://github.com/FlorethGonzalez/Wsq-s/blob/12c2d8fed894856d0f1cecc491875094a6073905/wsq11.py