Cognizant interview question

WAP to find the second largest number in an array without sorting

Interview Answer

Anonymous

19 Mar 2016

Initially I got the code wrong, which I discovered when I was showing the dry run to the interviewer, I asked him for another chance and then corrected the code and explained every step and the idea behind it.