mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-03-21 04:18:34 +08:00
Documentation for 969b447773
This commit is contained in:
@@ -405,13 +405,13 @@ Here is the call graph for this function:</div>
|
||||
<p >The <a class="el" href="../../d5/d4c/group__sorting.html#ga460c61cd948203b4816bef2accb3fc73">merge()</a> 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.</p>
|
||||
<dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">arr</td><td>- array with two halves arr[l...m] and arr[m+1...l] </td></tr>
|
||||
<tr><td class="paramname">arr</td><td>- array with two halves arr[l...m] and arr[m+1...r] </td></tr>
|
||||
<tr><td class="paramname">l</td><td>- left index or start index of first half array </td></tr>
|
||||
<tr><td class="paramname">m</td><td>- right index or end index of first half array</td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
<p>(The second array starts form m+1 and goes till l)</p>
|
||||
<p>(The second array starts form m+1 and goes till r)</p>
|
||||
<dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">r</td><td>- end index or right index of second half array </td></tr>
|
||||
|
||||
Reference in New Issue
Block a user