codestudio

[Solved] Sunrise Contest Problem

[Solved] Sunrise Contest Problem

Sunrise: Ninja is given an array ‘A’ of size ‘N’. Each element of the array represents the height of the ‘ith’ building (from left to right). He can choose any of the buildings. From that building, he wants to see…