logo

Crowdly

Browser

Add to Chrome

Mille tagastab järgmine funktsioon, kus funktsiooni parameetriks on teatav täisa...

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

Mille tagastab järgmine funktsioon, kus funktsiooni parameetriks on teatav täisarvude järjend a?

public static int f(int[] a) {

if (a.length == 1) {

return a[0];

} else {

int x = f(Arrays.copyOfRange(a, 1, a.length));

return (a[0] < x ? a[0] : x);

}
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