Netcracker Technology Interview Question

Find nth largest/smallest number in an array

Interview Answer

Anonymous

Mar 29, 2021

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