found nearest larger value

if the following are true:
  • val < a
  • the element at index i of stack tree = node (a, (-1), right)

then find nearest largertree = i


Comments

Please log in to add comments