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:-

the output should be:-

Ref:

https://stackoverflow.com/questions/15397637/interview-find-magnitude-pole-in-an-array




Related Contents to follow