<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>Comments on: Friday Algorithms: JavaScript Merge Sort</title>
	<atom:link href="/2010/07/02/friday-algorithms-javascript-merge-sort/feed/" rel="self" type="application/rss+xml" />
	<link>/2010/07/02/friday-algorithms-javascript-merge-sort/</link>
	<description>on web development</description>
	<lastBuildDate>Fri, 26 Oct 2018 21:40:18 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.0.3</generator>
	<item>
		<title>By: Boya Jiang</title>
		<link>/2010/07/02/friday-algorithms-javascript-merge-sort/comment-page-1/#comment-470702</link>
		<dc:creator><![CDATA[Boya Jiang]]></dc:creator>
		<pubDate>Tue, 31 Oct 2017 06:56:01 +0000</pubDate>
		<guid isPermaLink="false">/?p=1746#comment-470702</guid>
		<description><![CDATA[Chris is absolutely right, it is expensive to shift as the time complexity for array insertion is O(n).  Stoimen has written very clean and concise code, but sacrifices speed. It&#039;s faster to have a pointer on each of the array halves, and push the array with the higher value, while iterating that pointer.]]></description>
		<content:encoded><![CDATA[<p>Chris is absolutely right, it is expensive to shift as the time complexity for array insertion is O(n).  Stoimen has written very clean and concise code, but sacrifices speed. It&#8217;s faster to have a pointer on each of the array halves, and push the array with the higher value, while iterating that pointer.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Reeve</title>
		<link>/2010/07/02/friday-algorithms-javascript-merge-sort/comment-page-1/#comment-441617</link>
		<dc:creator><![CDATA[Chris Reeve]]></dc:creator>
		<pubDate>Fri, 10 Feb 2017 19:06:33 +0000</pubDate>
		<guid isPermaLink="false">/?p=1746#comment-441617</guid>
		<description><![CDATA[This code works fine for small and medium-sized inputs, but it may not complete for far larger arrays.  Probably has to do with all of the shifts ...]]></description>
		<content:encoded><![CDATA[<p>This code works fine for small and medium-sized inputs, but it may not complete for far larger arrays.  Probably has to do with all of the shifts &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anthony</title>
		<link>/2010/07/02/friday-algorithms-javascript-merge-sort/comment-page-1/#comment-420300</link>
		<dc:creator><![CDATA[Anthony]]></dc:creator>
		<pubDate>Thu, 15 Sep 2016 20:24:56 +0000</pubDate>
		<guid isPermaLink="false">/?p=1746#comment-420300</guid>
		<description><![CDATA[evenb:  It&#039;s removing the zeroth element from the right array and putting it into the result array]]></description>
		<content:encoded><![CDATA[<p>evenb:  It&#8217;s removing the zeroth element from the right array and putting it into the result array</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paloma</title>
		<link>/2010/07/02/friday-algorithms-javascript-merge-sort/comment-page-1/#comment-420068</link>
		<dc:creator><![CDATA[Paloma]]></dc:creator>
		<pubDate>Tue, 13 Sep 2016 13:29:39 +0000</pubDate>
		<guid isPermaLink="false">/?p=1746#comment-420068</guid>
		<description><![CDATA[Wouldn&#039;t be better to do an array concat instead of iterate the rest of the positions? I mean for this part:

    while (left.length)
        result.push(left.shift());]]></description>
		<content:encoded><![CDATA[<p>Wouldn&#8217;t be better to do an array concat instead of iterate the rest of the positions? I mean for this part:</p>
<p>    while (left.length)<br />
        result.push(left.shift());</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: evan b</title>
		<link>/2010/07/02/friday-algorithms-javascript-merge-sort/comment-page-1/#comment-396941</link>
		<dc:creator><![CDATA[evan b]]></dc:creator>
		<pubDate>Mon, 08 Feb 2016 14:49:41 +0000</pubDate>
		<guid isPermaLink="false">/?p=1746#comment-396941</guid>
		<description><![CDATA[Quick question, the part where you push right.shift() into the array. What is this part doing?]]></description>
		<content:encoded><![CDATA[<p>Quick question, the part where you push right.shift() into the array. What is this part doing?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
