Magnitude Pole: An element in an array whose left hand side elements are lesser than or equal to it and whose right hand side element are greater than or equal to it.
mags
, and int variable called maxMag
.maxMag
.maxMag = element
.Result: array of magnitude poles