✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Mille prindib järgmine meetod etteantud kahendotsimispuu ja täisarvu korral?
int loe = 0;public void prindi(Tipp juur, int k) { if (juur != null && loe <= k) { prindi(juur.parem, k); loe++; if (loe == k) System.out.println(juur.võti); prindi(juur.vasak, k); }}