def __init__(self,X):
        """Set up structure with sequence X as data.
        Uses an LCA structure on a Cartesian tree for the input."""
        self._data = list(X)
        if len(X) > 1:
            big = map(max, self._ansv(False), self._ansv(True))
            parents = dict([(i,big[i][1]) for i in range(len(X)) if big[i]])
            self._lca = LCA(parents)
Set up structure with sequence X as data.
        Uses an LCA structure on a Cartesian tree for the input.
recipes/Python/252123_Range_minimleast/recipe-252123.py