Question d’entretien chez Etsy

Return the max int in an array.

Réponse à la question d'entretien

Utilisateur anonyme

22 août 2018

Consider test cases first - invalid values return null and negative values are valid. A single loop through the array is sufficient.