Function steap_by_steap::sort::merge

source ·
fn merge(arr: &mut [i32], left: usize, mid: usize, right: usize)
Expand description

Merges two subarrays of arr.

§Arguments

  • arr - The array to be sorted.
  • left - The starting index of the left subarray.
  • mid - The ending index of the left subarray and starting index of the right subarray.
  • right - The ending index of the right subarray.