• + 0 comments

    def minimumLoss(price): valores = []
    for pv in range(len(price)): for pi in range(pv + 1, len(price)): rest = price[pv] - price[pi] if rest > 0: valores.append(rest)

    return min(valores)