Question d’entretien chez ProgressSoft

how you can improve the code above ?

Réponse à la question d'entretien

Utilisateur anonyme

30 juil. 2018

make the arr array a static field and check if n is lower than the upper bound of the array then return arr[n] otherwise continue calculation from upper bound to n