typo
This commit is contained in:
parent
69045f7569
commit
586b4d1a42
@ -32,7 +32,7 @@ struct uzol* nacitaj_data() { // todo, rekurzivne pomazat z pamate
|
||||
return uzol; // vyplneny strom
|
||||
}
|
||||
|
||||
int zrataj_produkty(struct node* uzol) {
|
||||
int zrataj_produkty(struct uzol* uzol) {
|
||||
if (uzol == NULL) return 0; // ak je NULL, vratim nic
|
||||
if (uzol -> pravy == NULL && uzol -> lavy == NULL) return 1; //ak nemam pokracovanie ale existujem, vratim 1
|
||||
return zrataj_produkty(uzol -> pravy) + zrataj_produkty(uzol -> lavy); // pozbieram existencne jednotky
|
||||
|
||||
Loading…
Reference in New Issue
Block a user