Capgemini Engineering Interview Question

WAP to find 2nd highest number in array with most efficient way.

Interview Answer

Anonymous

May 18, 2022

First sort the array then access the element by there index.