def almostIncreasingSequence(sequence):
    removed, max, previousMax,  = 0, 0, 0
    for s in sequence:
        if not max or s > max:
            previousMax, max = max, s
        elif not previousMax or s > previousMax:
            if removed:
                return False
            removed, max = 1, s
        else:
            if removed:
                return False
            removed = 1
    return True

4c4a8308b69a357dfa06c8e1910f0addc24a80e6
<mask token>

def almostIncreasingSequence(sequence):
    removed, max, previousMax = 0, 0, 0
    for s in sequence:
        if not max or s > max:
            previousMax, max = max, s
        elif not previousMax or s > previousMax:
            if removed:
                return False
            removed, max = 1, s
        else:
            if removed:
                return False
            removed = 1
    return True

def almostIncreasingSequence(sequence):
    removed, max, previousMax,  = 0, 0, 0
    for s in sequence:
        if not max or s > max:
            previousMax, max = max, s
        elif not previousMax or s > previousMax:
            if removed:
                return False
            removed, max = 1, s
        else:
            if removed:
                return False
            removed = 1
    return True
