<?xml version="1.0" encoding="UTF-8"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" >

  <channel>
    <title><![CDATA[Комментарии / Профиль memoryallocator]]></title>
    <link>https://habr.com/ru/users/memoryallocator/comments/</link>
    <description><![CDATA[Хабр: комментарии пользователя memoryallocator]]></description>
    <language>ru</language>
    <managingEditor>editor@habr.com</managingEditor>
    <generator>habr.com</generator>
    <pubDate>Thu, 23 Apr 2026 01:14:57 GMT</pubDate>
    
    
      <image>
        <link>https://habr.com/ru/</link>
        <url>https://habrastorage.org/webt/ym/el/wk/ymelwk3zy1gawz4nkejl_-ammtc.png</url>
        <title>Хабр</title>
      </image>
    

    
      

      
        
  
    <item>
      <title>24.07.2025 10:16:10 </title>
      <guid isPermaLink="true">https://habr.com/ru/articles/929034/#comment_28614978</guid>
      <link>https://habr.com/ru/articles/929034/#comment_28614978</link>
      <description><![CDATA[<p>Использую браузер Brave. По вашей ссылке на получение UserID&nbsp;все значения -- null. Я в безопасности? :)</p><figure class="full-width "><img src="https://habrastorage.org/getpro/habr/upload_files/6bc/9ad/306/6bc9ad3060c4b58a2fb86202ea6ae0bc.png" width="939" height="1388"></figure>]]></description>
      <pubDate>Thu, 24 Jul 2025 10:16:10 GMT</pubDate>
      <dc:creator><![CDATA[]]></dc:creator>
    </item>
  

  
    <item>
      <title>22.10.2021 17:29:54 </title>
      <guid isPermaLink="true">https://habr.com/ru/companies/geekfactor/articles/585022/#comment_23620016</guid>
      <link>https://habr.com/ru/companies/geekfactor/articles/585022/#comment_23620016</link>
      <description><![CDATA[<p>Извините, но мне показалось, вы просто троллите.</p><p>Ваш код выполняется за O(n^2). То, что вложенный цикл начинается с i + 1, на оценку не влияет.</p><p>Решение за O(n):</p><pre><code class="python">val_to_pos = {x: i for i, x in enumerate(arr)}
for i, x in enumerate(arr):
    pair = target - x
    pair_pos = val_to_pos.get(pair)
    if pair_pos == i and must_be_distinct:
        continue
    if pair_pos is not None:
        return (x, pair)
return None</code></pre>]]></description>
      <pubDate>Fri, 22 Oct 2021 17:29:54 GMT</pubDate>
      <dc:creator><![CDATA[]]></dc:creator>
    </item>
  

      

      

    
  </channel>
</rss>
