Find magnitude pole in an array. A magnitude pole defined as 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. For example
if input is:-
3,1,4,5,9,7,6,11
the output should be:-
5,11
Ref:
https://stackoverflow.com/questions/15397637/interview-find-magnitude-pole-in-an-array
WE RECOMMEND RELATED POST
The post Find magnitude pole in an array appeared first on wikistack.