The below is my implementation of finding the nth largest(whichmax)number in the given array of integers. This would work for both positive and negative integers. This also affects the given array by manipulating the values of the source array. Hence if you want an non-manipulative algo, this is NOT the one. #include “stdafx.h” class …
Recent Comments