<?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/"
	
	xmlns:georss="http://www.georss.org/georss"
	xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
	>

<channel>
	<title>stack &#8211; JSAlgorithm</title>
	<atom:link href="https://jsalgorithm.com/tag/stack/feed/" rel="self" type="application/rss+xml" />
	<link>https://jsalgorithm.com</link>
	<description></description>
	<lastBuildDate>Wed, 20 May 2020 17:34:50 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.5.15</generator>
<site xmlns="com-wordpress:feed-additions:1">177240629</site>	<item>
		<title>LinkedList Palindrome</title>
		<link>https://jsalgorithm.com/2020/05/20/linkedlist-palindrome/</link>
					<comments>https://jsalgorithm.com/2020/05/20/linkedlist-palindrome/#respond</comments>
		
		<dc:creator><![CDATA[Ronald]]></dc:creator>
		<pubDate>Wed, 20 May 2020 17:20:07 +0000</pubDate>
				<category><![CDATA[Leetcode]]></category>
		<category><![CDATA[Loop]]></category>
		<category><![CDATA[leetcode]]></category>
		<category><![CDATA[linkedlist]]></category>
		<category><![CDATA[loop]]></category>
		<category><![CDATA[palindrome]]></category>
		<category><![CDATA[stack]]></category>
		<guid isPermaLink="false">http://50.19.13.106/?p=126</guid>

					<description><![CDATA[let isPalindrome = function(head) { let slow = head, fast = head, val = [slow.val]; while (fast.next) { if (fast.next.next) { fast = fast.next.next; slow = slow.next; val.push(slow.val); } else { fast = fast.next; slow = slow.next; } } while (slow) { if (slow.val !== val.pop()) { return false; } slow = slow.next; } return [&#8230;]]]></description>
										<content:encoded><![CDATA[
<pre class="wp-block-preformatted">let isPalindrome = function(head) {<br><br>    let slow = head, fast = head, val = [slow.val];<br><br>    while (fast.next) {<br>        if (fast.next.next) {<br>            fast = fast.next.next;<br>            slow = slow.next;<br>            val.push(slow.val);<br>        }<br>        else {<br>            fast = fast.next;<br>            slow = slow.next;<br>        }<br>    }<br><br>    while (slow) {<br>        if (slow.val !== val.pop()) {<br>            return false;<br>        }<br>        slow = slow.next;<br>    }<br><br>    return val.length === 0;<br>};</pre>
]]></content:encoded>
					
					<wfw:commentRss>https://jsalgorithm.com/2020/05/20/linkedlist-palindrome/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">126</post-id>	</item>
	</channel>
</rss>
