Should give understandable feedback


void factorial(int *x){
int y = x;
while(y != 1){
y = y
y-1;
–y;
}
*x =y;
}

Submitted by Eelco Visser on 5 January 2013 at 22:14

On 23 June 2017 at 13:24 Elmer van Chastelet tagged algoritmiek-2017

On 23 June 2017 at 13:24 Elmer van Chastelet removed tag algoritmiek-2017

On 17 August 2017 at 12:57 Elmer van Chastelet tagged 0.47.11

On 17 August 2017 at 12:57 Elmer van Chastelet tagged algoritmiek-2017

On 17 August 2017 at 12:58 Elmer van Chastelet commented:

Instead of time-out message, there will now be a hint about infinite loops/inefficient implementation, and that the code took more than 20sec to execute.


On 17 August 2017 at 12:58 Elmer van Chastelet closed this issue.

Log in to post comments