logo

Crowdly

Browser

Add to Chrome

Qual das situações representa um cenário de pior caso do método allEqual? // ...

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

Qual das situações representa um cenário de pior caso do método allEqual? //

Which situation represents a worst-case scenario for the method allEqual?

/**

*

* @param numbers : The array is completely full

* @return

*/

public static boolean allEqual(int[] numbers) {

int x=numbers[0];

int i=1;

while (i<numbers.length && x==numbers[i])

i++;

return i==numbers.length;

}

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

Want instant access to all verified answers on moodle.fct.unl.pt?

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

Browser

Add to Chrome