Question d’entretien chez Netcracker Technology

Find nth largest/smallest number in an array

Réponse à la question d'entretien

Utilisateur anonyme

29 mars 2021

Sort the array in either descending or ascending order and then pass a parameter to find the nth largest or nth smallest number