Hello everyone,
I have been trying to do this but cannot find a module or perl code or even a simple but robust algorithm to do this.
I have an integer array of size n. I need to find the top k local maxima i.e. points in array that are local maxima and their magnitude is amongst top k amongst all local maxima.
Any help is greatly appreciated. And thanks for the great site !
thanks
Ash