Python3 program to print previous greater element An efficient solution to print previous greater element for every element in an array .
import math as mt NEW_LINE def prevGreater ( arr , n ) : NEW_LINE