Timeline for Randomizing until 0
Current License: CC BY-SA 4.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jul 9, 2018 at 17:54 | history | edited | SIGSTACKFAULT | CC BY-SA 4.0 | added 15 characters in body |
| Jul 9, 2018 at 17:48 | history | edited | SIGSTACKFAULT | CC BY-SA 4.0 | added 43 characters in body |
| Jul 9, 2018 at 17:47 | comment | added | SIGSTACKFAULT | Even better: f(K){while(K)printf("%d\n",K,K=rand()%K);} | |
| Jul 9, 2018 at 17:26 | comment | added | LambdaBeta | You tied me, the question also requires that you print the initial K. Without it I also got 40. You can also get the 42 fully compliant version in a similar way: f(K){while(K)printf("%d\n",K),K=rand()%K;}. Still you got my +1 for an equal solution! | |
| Jul 9, 2018 at 16:54 | history | edited | SIGSTACKFAULT | CC BY-SA 4.0 | deleted 53 characters in body |
| Jul 9, 2018 at 16:49 | history | answered | SIGSTACKFAULT | CC BY-SA 4.0 |