✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.
Qual a complexidade temporal do método allEqual no melhor caso, sendo n=numbers.length? //What is the best-case time complexity of the method allEquals, where n=numbers.length?/** * * @param numbers : array that 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;}