MCPcopy Create free account
hub / github.com/TheAlgorithms/C-Plus-Plus / merge

Function merge

sorting/merge_sort.cpp:37–70  ·  view source on GitHub ↗

* * The merge() function is used for merging two halves. * The merge(arr, l, m, r) is key process that assumes that * arr[l..m] and arr[m+1..r] are sorted and merges the two * sorted sub-arrays into one. * * @param arr - array with two halves arr[l...m] and arr[m+1...r] * @param l - left index or start index of first half array * @param m - right index or end index of first half array *

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

mergeSortFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected