Liste des Groupes | Revenir à cl c |
I'm doing these algorithm problems atThis is related to the Collatz Conjecture. What's weird is not mentioning it.
https://cses.fi/problemset/list/
For instance: Weird Algorithm
https://cses.fi/problemset/task/1068
len = strlen(result);And what's odd here is collating the results in a string (especially when the possible number of steps is unknown). Why not just print it straight to the console?
sprintf(result + len, "%d ", n);
Les messages affichés proviennent d'usenet.