Learn Data Structures by Building the Merge Sort Algorithm - Step 6

help please correct my coding


# User Editable Region

def merge_sort(array):
    middle_point = len(array) // 2
    left_part = array[:middle_point]
    right_part = array[middle_point:]
    
    merge_sort(left_part)
        merge_sort(right_part)




# User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36

Challenge Information:

Learn Data Structures by Building the Merge Sort Algorithm - Step 6

Recursively call means a function calls itself (meaning a function calls itself, from inside itself). Don’t give any parameter or argument to it:

function_name()

This is guidance.

1 Like