https://algorist.com//algowiki/index.php?title=4.3&feed=atom&action=history4.3 - Revision history2024-03-28T12:36:12ZRevision history for this page on the wikiMediaWiki 1.34.2https://algorist.com//algowiki/index.php?title=4.3&diff=305&oldid=prevAlgowikiadmin: Created page with "<pre> Algo - If we create pair of (min1, max2n) (min1, max2n-1)... will provide optimal result 1) Sort the set of 2n element (n log n) 2) Now assign two pointers Start: A[..."2020-09-20T18:20:58Z<p>Created page with "<pre> Algo - If we create pair of (min1, max2n) (min1, max2n-1)... will provide optimal result 1) Sort the set of 2n element (n log n) 2) Now assign two pointers Start: A[..."</p>
<p><b>New page</b></p><div><pre><br />
Algo -<br />
If we create pair of (min1, max2n) (min1, max2n-1)... will provide optimal result<br />
1) Sort the set of 2n element (n log n)<br />
2) Now assign two pointers <br />
Start: A[0]<br />
End: A[2n-1]<br />
while (start < end)<br />
pair(start, end)<br />
start++<br />
end--<br />
EndLoop<br />
</pre><br />
--[[User:Max|Max]] 06:55, 25 June 2010 (EDT)<br />
<br />
<br />
Back to [[Chapter 4]]</div>Algowikiadmin