logo

Crowdly

Browser

Add to Chrome

Mille leiab järgmine meetod etteantud kahendpuu puhul? int leia(Tipp juur) { ...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Mille leiab järgmine meetod etteantud kahendpuu puhul?

int leia(Tipp juur) {

if (juur == null)

return 0;

if (juur.vasak == null && juur.parem == null)

return 1;

return leia(juur.vasak) + leia(juur.parem);

}

0%
0%
0%
0%
0%
More questions like this

Want instant access to all verified answers on moodle.ut.ee?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome