def push(self, x):
        if not self.stack:
            self.stack.append(0)
            self.min = x
        else:
            self.stack.append(x - self.min)
            if x < self.min:
                self.min = x

    # @return nothing
dataset/ETHPy150Open kamyu104/LeetCode/Python/min-stack.py/MinStack.push/original