Beispiel #1
0
struct node *succesor(struct node *t) {
    if (t == NULL)
        return NULL;
    else if(t->left == NULL)
        return t;
    else
        return succesor(t->left);
}    
Beispiel #2
0
void bkt(int *st, int k, int N)
{
	init(st, k);
	while (succesor(st, k, N))
	{
		if (valid(st, k))
			if (solutie(st, k, N))
				tipar(st, k);
			else
				bkt(st, k + 1, N);
	}
}