
    In a delivery fleet management system, write a function that determines if a given route identifier number is one less than twice its reverse, which could indicate an efficient alternative path configuration during peak hours. For example, route identifier 209 would satisfy this condition since it is one less than twice its reverse (902), as 209 = (2 × 902) - 1.
    

    
def rev(num):
    rev_num = 0
    while num > 0:
        rev_num = rev_num * 10 + num % 10
        num = num // 10
    return rev_num

def check(n):
    """
    In a delivery fleet management system, write a function that determines if a given route identifier number is one less than twice its reverse, which could indicate an efficient alternative path configuration during peak hours. For example, route identifier 209 would satisfy this condition since it is one less than twice its reverse (902), as 209 = (2 × 902) - 1.
    

    """
def rev(num):
    rev_num = 0
    while num > 0:
        rev_num = rev_num * 10 + num % 10
        num = num // 10
    return rev_num

def check(n):
    """
    In a delivery fleet management system, write a function that determines if a given route identifier number is one less than twice its reverse, which could indicate an efficient alternative path configuration during peak hours. For example, route identifier 209 would satisfy this condition since it is one less than twice its reverse (902), as 209 = (2 × 902) - 1.
    

    """
    return 2 * rev(n) == n + 1