How to compute rightmax array in the problem.
https://online.codingblocks.com/player/7331/content/4978?s=1461
min(leftmax[i],rightmax[i])-height of current building
How to compute rightmax array in the problem.
https://online.codingblocks.com/player/7331/content/4978?s=1461
min(leftmax[i],rightmax[i])-height of current building