
    Write a function to determine the largest disparity between mastered and non-mastered learning objectives within any continuous sequence of a student's learning progress record. The input is a sequence where '1' represents mastery and '0' represents non-mastery of learning objectives, and the function should help identify the most significant learning gap or achievement streak to adjust the curriculum accordingly.
    

    
def find_length(string):
    """
    Write a function to determine the largest disparity between mastered and non-mastered learning objectives within any continuous sequence of a student's learning progress record. The input is a sequence where '1' represents mastery and '0' represents non-mastery of learning objectives, and the function should help identify the most significant learning gap or achievement streak to adjust the curriculum accordingly.
    

    """
def find_length(string):
    """
    Write a function to determine the largest disparity between mastered and non-mastered learning objectives within any continuous sequence of a student's learning progress record. The input is a sequence where '1' represents mastery and '0' represents non-mastery of learning objectives, and the function should help identify the most significant learning gap or achievement streak to adjust the curriculum accordingly.
    

    """
    n = len(string)
    current_sum = 0
    max_sum = 0
    for i in range(n):
        current_sum += 1 if string[i] == '0' else -1
        if current_sum < 0:
            current_sum = 0
        max_sum = max(current_sum, max_sum)
    return max_sum if max_sum else 0