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

Function merge_sorted

src/sorting/strand_sort.rs:80–107  ·  view source on GitHub ↗

Merges two sorted `Vec`s into a single sorted `Vec`. Consumes both inputs and produces a new vector whose length equals the sum of the two input lengths. This is the standard two-way merge used in merge sort, adapted here for `Vec` ownership.

(left: Vec<T>, right: Vec<T>)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

strand_sortFunction · 0.85

Calls 4

peekMethod · 0.80
pushMethod · 0.80
lenMethod · 0.45
nextMethod · 0.45

Tested by

no test coverage detected