def check_boundary_lines_similar(l_1, l_2):
    """Compare two lists to see if their elements are roughly the same.
    @param l_1: (list) of strings.
    @param l_2: (list) of strings.
    @return: (int) 1/0.
    """
    num_matches = 0
    if type(l_1) != list or type(l_2) != list or len(l_1) != len(l_2):
        return 0
    num_elements = len(l_1)
    for i in range(0, num_elements):
        if l_1[i].isdigit() and l_2[i].isdigit():
            num_matches += 1
        else:
            l1_str = l_1[i].lower()
            l2_str = l_2[i].lower()
            if l1_str[0] == l2_str[0] and l1_str[len(l1_str) - 1] == l2_str[
                len(l2_str) - 1]:
                num_matches = num_matches + 1
    if len(l_1) == 0 or float(num_matches) / float(len(l_1)) < 0.9:
        return 0
    else:
        return 1
