<?xml version='1.0' encoding="utf-8"?>
      <rss version='2.0'>
      <channel>
      <title>Форум на Исходниках.RU</title>
      <link>https://forum.sources.ru</link>
      <description>Форум на Исходниках.RU</description>
      <generator>Форум на Исходниках.RU</generator>
  	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=418730&amp;view=findpost&amp;p=3831277</guid>
        <pubDate>Fri, 22 May 2020 18:33:34 +0000</pubDate>
        <title>Определить самую короткую ветвь(ветви) в дереве</title>
        <link>https://forum.sources.ru/index.php?showtopic=418730&amp;view=findpost&amp;p=3831277</link>
        <description><![CDATA[MBo: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=418730&view=findpost&p=3831276'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>JoeUser &#064; <time class="tag-quote__quoted-time" datetime="2020-05-22T18:27:38+00:00">22.05.20, 18:27</time></span><div class='quote '>А почему не 2 или 3?</div></div><br>
Потому что спуск на один уровень увеличивает глубину на единицу <br>
<br>
<span class="tag-color tag-color-named" data-value="mergepost" style="color: mergepost"><span class='tag-size' data-value='7' style='font-size:7pt;'>Добавлено <time class="tag-mergetime" datetime="2020-05-22T21:36:21+03:00">22.05.20, 18:36</time></span></span><br>
<strong class='tag-b'>Dobro_77</strong><br>
Сначала найти длину этой самой короткой ветви, потом ещё раз сделать обход - как дошли до nil на найденной глубине - остановились, и возвращаемся до корня, записывая узлы по пути]]></description>
        <author>MBo</author>
        <category>Pascal</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=418730&amp;view=findpost&amp;p=3831276</guid>
        <pubDate>Fri, 22 May 2020 18:27:38 +0000</pubDate>
        <title>Определить самую короткую ветвь(ветви) в дереве</title>
        <link>https://forum.sources.ru/index.php?showtopic=418730&amp;view=findpost&amp;p=3831276</link>
        <description><![CDATA[JoeUser: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=418730&view=findpost&p=3831269'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>MBo &#064; <time class="tag-quote__quoted-time" datetime="2020-05-22T16:18:33+00:00">22.05.20, 16:18</time></span><div class='quote '>JoeUser<br>
Почему?</div></div><br>
А почему не 2 или 3?  :-?]]></description>
        <author>JoeUser</author>
        <category>Pascal</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=418730&amp;view=findpost&amp;p=3831275</guid>
        <pubDate>Fri, 22 May 2020 18:18:33 +0000</pubDate>
        <title>Определить самую короткую ветвь(ветви) в дереве</title>
        <link>https://forum.sources.ru/index.php?showtopic=418730&amp;view=findpost&amp;p=3831275</link>
        <description><![CDATA[Dobro_77: <strong class='tag-b'>MBo</strong><br>
А можно как-нибудь сделать, чтобы элементы этой короткой ветви печатались, а не длина?]]></description>
        <author>Dobro_77</author>
        <category>Pascal</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=418730&amp;view=findpost&amp;p=3831269</guid>
        <pubDate>Fri, 22 May 2020 16:18:33 +0000</pubDate>
        <title>Определить самую короткую ветвь(ветви) в дереве</title>
        <link>https://forum.sources.ru/index.php?showtopic=418730&amp;view=findpost&amp;p=3831269</link>
        <description><![CDATA[MBo: <strong class='tag-b'>JoeUser</strong><br>
Почему?]]></description>
        <author>MBo</author>
        <category>Pascal</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=418730&amp;view=findpost&amp;p=3831266</guid>
        <pubDate>Fri, 22 May 2020 15:46:05 +0000</pubDate>
        <title>Определить самую короткую ветвь(ветви) в дереве</title>
        <link>https://forum.sources.ru/index.php?showtopic=418730&amp;view=findpost&amp;p=3831266</link>
        <description><![CDATA[Gonarh: Да и со скобками проблема  :D]]></description>
        <author>Gonarh</author>
        <category>Pascal</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=418730&amp;view=findpost&amp;p=3831265</guid>
        <pubDate>Fri, 22 May 2020 15:20:36 +0000</pubDate>
        <title>Определить самую короткую ветвь(ветви) в дереве</title>
        <link>https://forum.sources.ru/index.php?showtopic=418730&amp;view=findpost&amp;p=3831265</link>
        <description><![CDATA[JoeUser: <strong class='tag-b'>MBo</strong>, а что за &quot;1&quot; - непорядок, ящетаю&#33; 8-)]]></description>
        <author>JoeUser</author>
        <category>Pascal</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=418730&amp;view=findpost&amp;p=3831263</guid>
        <pubDate>Fri, 22 May 2020 14:43:33 +0000</pubDate>
        <title>Определить самую короткую ветвь(ветви) в дереве</title>
        <link>https://forum.sources.ru/index.php?showtopic=418730&amp;view=findpost&amp;p=3831263</link>
        <description><![CDATA[MBo: <div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">function depth(node):Integer;</div><div class="code_line">begin &nbsp;</div><div class="code_line">&nbsp;&nbsp;if node = nil then</div><div class="code_line">&nbsp;&nbsp; &nbsp;result = 0</div><div class="code_line">&nbsp;&nbsp;else </div><div class="code_line">&nbsp;&nbsp; &nbsp;result = 1 + min(depth(node.left), depth(node.right));</div><div class="code_line">end;</div></ol></div></div></div></div><script>preloadCodeButtons('1');</script>]]></description>
        <author>MBo</author>
        <category>Pascal</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=418730&amp;view=findpost&amp;p=3831246</guid>
        <pubDate>Fri, 22 May 2020 09:16:13 +0000</pubDate>
        <title>Определить самую короткую ветвь(ветви) в дереве</title>
        <link>https://forum.sources.ru/index.php?showtopic=418730&amp;view=findpost&amp;p=3831246</link>
        <description><![CDATA[Dobro_77: Помогите пожалуйста&#33;)<br>Имеется двоичное дерево, нужно определить самую короткую ветвь(ветви).<br>Понимаю, что через рекурсию, но проблемы с реализацией.]]></description>
        <author>Dobro_77</author>
        <category>Pascal</category>
      </item>
	
      </channel>
      </rss>
	