<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Pro-Tek Blog &#187; Array</title>
	<atom:link href="http://www.pro-tekconsulting.com/blog/category/array/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pro-tekconsulting.com/blog</link>
	<description>For UI developers / UI designers and UI trends</description>
	<lastBuildDate>Thu, 05 Sep 2019 03:59:47 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.0.34</generator>
	<item>
		<title>HOW IS AN ARRAY DIFFERENT FROM LINKED LIST?</title>
		<link>http://www.pro-tekconsulting.com/blog/how-is-an-array-different-from-linked-list/</link>
		<comments>http://www.pro-tekconsulting.com/blog/how-is-an-array-different-from-linked-list/#comments</comments>
		<pubDate>Thu, 27 Dec 2018 06:08:06 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Array]]></category>
		<category><![CDATA[Array different from Linked List]]></category>

		<guid isPermaLink="false">http://www.pro-tekconsulting.com/blog/?p=2781</guid>
		<description><![CDATA[<p>How is an Array different from Linked List? The size of the arrays is fixed, linked lists are dynamic in size. Inserting and deleting a new element in an array of elements is expensive, whereas both insertion and deletion can easily be done in Linked Lists. Random access is not allowed in linked list. Extra [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog/how-is-an-array-different-from-linked-list/">HOW IS AN ARRAY DIFFERENT FROM LINKED LIST?</a> appeared first on <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog">Pro-Tek Blog</a>.</p>
]]></description>
				<content:encoded><![CDATA[<h4>How is an Array different from Linked List?</h4>
<p>The size of the arrays is fixed, linked lists are dynamic in size.</p>
<p>Inserting and deleting a new element in an array of elements is expensive, whereas both insertion and deletion can easily be done in Linked Lists.</p>
<p>Random access is not allowed in linked list.</p>
<p>Extra memory space for a pointer is required with each element of the linked list.</p>
<p>Arrays have better cache locality that can make a pretty big difference in performance.
</p>
<p>&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;</p>
<p>The post <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog/how-is-an-array-different-from-linked-list/">HOW IS AN ARRAY DIFFERENT FROM LINKED LIST?</a> appeared first on <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog">Pro-Tek Blog</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pro-tekconsulting.com/blog/how-is-an-array-different-from-linked-list/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HOW DO YOU ADD AN ELEMENT AT THE BEGINING OF AN ARRAY? HOW DO YOU ADD ONE AT THE END?</title>
		<link>http://www.pro-tekconsulting.com/blog/how-do-you-add-an-element-at-the-begining-of-an-array-how-do-you-add-one-at-the-end/</link>
		<comments>http://www.pro-tekconsulting.com/blog/how-do-you-add-an-element-at-the-begining-of-an-array-how-do-you-add-one-at-the-end/#comments</comments>
		<pubDate>Fri, 09 Mar 2018 01:47:50 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Array]]></category>

		<guid isPermaLink="false">http://www.pro-tekconsulting.com/blog/?p=2430</guid>
		<description><![CDATA[<p>How do you add an element at the begining of an array? How do you add one at the end? var myArray = [&#8216;a&#8217;, &#8216;b&#8217;, &#8216;c&#8217;, &#8216;d&#8217;]; myArray.push(&#8216;end&#8217;); myArray.unshift(&#8216;start&#8217;); console.log(myArray); // [&#8220;start&#8221;, &#8220;a&#8221;, &#8220;b&#8221;, &#8220;c&#8221;, &#8220;d&#8221;, &#8220;end&#8221;] With ES6, one can use the spread operator: myArray = [&#8216;start&#8217;, &#8230;myArray]; myArray = [&#8230;myArray, &#8216;end&#8217;]; Or, in [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog/how-do-you-add-an-element-at-the-begining-of-an-array-how-do-you-add-one-at-the-end/">HOW DO YOU ADD AN ELEMENT AT THE BEGINING OF AN ARRAY? HOW DO YOU ADD ONE AT THE END?</a> appeared first on <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog">Pro-Tek Blog</a>.</p>
]]></description>
				<content:encoded><![CDATA[<h4>How do you add an element at the begining of an array? How do you add one at the end?</h4>
<p>var myArray = [&#8216;a&#8217;, &#8216;b&#8217;, &#8216;c&#8217;, &#8216;d&#8217;];<br />
myArray.push(&#8216;end&#8217;);<br />
myArray.unshift(&#8216;start&#8217;);<br />
console.log(myArray); // [&#8220;start&#8221;, &#8220;a&#8221;, &#8220;b&#8221;, &#8220;c&#8221;, &#8220;d&#8221;, &#8220;end&#8221;]<br />
<strong>With ES6, one can use the spread operator:</strong></p>
<p>myArray = [&#8216;start&#8217;, &#8230;myArray];<br />
myArray = [&#8230;myArray, &#8216;end&#8217;];<br />
<strong>Or, in short:</strong></p>
<p>myArray = [&#8216;start&#8217;, &#8230;myArray, &#8216;end&#8217;];</p>
<p>The post <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog/how-do-you-add-an-element-at-the-begining-of-an-array-how-do-you-add-one-at-the-end/">HOW DO YOU ADD AN ELEMENT AT THE BEGINING OF AN ARRAY? HOW DO YOU ADD ONE AT THE END?</a> appeared first on <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog">Pro-Tek Blog</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pro-tekconsulting.com/blog/how-do-you-add-an-element-at-the-begining-of-an-array-how-do-you-add-one-at-the-end/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
