<?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>pathsum &#8211; JSAlgorithm</title>
	<atom:link href="https://jsalgorithm.com/tag/pathsum/feed/" rel="self" type="application/rss+xml" />
	<link>https://jsalgorithm.com</link>
	<description></description>
	<lastBuildDate>Sun, 17 May 2020 02:54:10 +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>Path Sum II</title>
		<link>https://jsalgorithm.com/2020/05/17/path-sum-ii/</link>
					<comments>https://jsalgorithm.com/2020/05/17/path-sum-ii/#respond</comments>
		
		<dc:creator><![CDATA[Ron]]></dc:creator>
		<pubDate>Sun, 17 May 2020 02:54:10 +0000</pubDate>
				<category><![CDATA[Binary Tree]]></category>
		<category><![CDATA[Depth First Search]]></category>
		<category><![CDATA[Leetcode]]></category>
		<category><![CDATA[Recursion]]></category>
		<category><![CDATA[binary-tree]]></category>
		<category><![CDATA[depth-first-search]]></category>
		<category><![CDATA[leetcode]]></category>
		<category><![CDATA[pathsum]]></category>
		<category><![CDATA[recursion]]></category>
		<guid isPermaLink="false">http://50.19.13.106/?p=96</guid>

					<description><![CDATA[let pathSum = function(root, sum, results = [], result = []) { if (!root) return results; if (sum - root.val === 0 &#38;&#38; !root.left &#38;&#38; !root.right) { results.push([...result, root.val]); } pathSum(root.left, sum - root.val, results, [...result, root.val]); pathSum(root.right, sum - root.val, results, [...result, root.val]); return results;};]]></description>
										<content:encoded><![CDATA[
<pre class="wp-block-preformatted">let pathSum = function(root, sum, results = [], result = []) {<br><br>    if (!root) return results;<br>    if (sum - root.val === 0 &amp;&amp; !root.left &amp;&amp; !root.right) {<br>        results.push([...result, root.val]);<br>    }<br><br>    pathSum(root.left, sum - root.val, results, [...result, root.val]);<br>    pathSum(root.right, sum - root.val, results, [...result, root.val]);<br>    return results;<br>};</pre>
]]></content:encoded>
					
					<wfw:commentRss>https://jsalgorithm.com/2020/05/17/path-sum-ii/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">96</post-id>	</item>
	</channel>
</rss>
