Question d’entretien chez Philips

Return the biggest i element in an array

Réponse à la question d'entretien

Utilisateur anonyme

26 janv. 2022

If the array is not sorted, in a for-loop test each element vs an initial variable (set to the first element of the array) and if it's bigger just update that variable. At the end of the loop return said variable.