def can_decrement()

in algorithm/right_based/algorithm.py [0:0]


def can_decrement(time: TimeInterval, interval: TimeInterval) -> bool:
    try:
        _ = time - interval
        return True
    except Exception:
        return False