Pregunta de entrevista de Netcracker Technology

Find nth largest/smallest number in an array

Respuesta de la entrevista

Anónimo

29 mar 2021

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