Function steap_by_steap::sort::merge_sort_helper
source · fn merge_sort_helper(arr: &mut [i32], left: usize, right: usize)
Expand description
Recursively divides the array into subarrays and merges them in sorted order.
§Arguments
arr
- The array to be sorted.left
- The starting index of the subarray to be sorted.right
- The ending index of the subarray to be sorted.