MCPcopy Create free account
hub / github.com/TheAlgorithms/Rust / merge

Function merge

src/sorting/tim_sort.rs:44–75  ·  view source on GitHub ↗

Merges two sorted subarrays into a single sorted subarray. This function merges two sorted subarrays of the provided slice into a single sorted subarray. # Arguments `arr` - The slice containing the subarrays to be merged. `left` - The starting index of the first subarray. `mid` - The ending index of the first subarray. `right` - The ending index of the second subarray.

(arr: &mut [T], left: usize, mid: usize, right: usize)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

tim_sortFunction · 0.70

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected