from typing import List

def minOperations(logs: List[str]) -> int:
    operation = 0
    for i in logs:
        if i == "../":
            if operation != 0:
                operation -= 1
        elif i == "./":
            continue
        else:
            operation += 1

    return operation
from typing import List

def minOperations(logs: List[str]) -> int:
    operation = 0
    for i in logs:
        if i == "../":
            if operation != 0:
                operation -= 1
        elif i == "./":
            continue
        else:
            operation += 1

    return operation