def conflict(meeting_map, i, j):
    """
    Checks whether meeting i and j share attendee.
    """
    for attendee in meeting_map[i]:
        if attendee in meeting_map[j]:
            return True
    return False