<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
    <channel>
        <title>Two Pointers - 标签 - zwyyy456&#39;s blog</title>
        <link>https://doit.tellm.eu.org/zh/tags/two-pointers/</link>
        <description>Two Pointers - 标签 - zwyyy456&#39;s blog</description>
        <generator>Hugo -- gohugo.io</generator><language>zh</language><managingEditor>zwyyy456@hotmail.com (zwyyy456)</managingEditor>
            <webMaster>zwyyy456@hotmail.com (zwyyy456)</webMaster><copyright>This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.</copyright><lastBuildDate>Fri, 04 Aug 2023 10:59:11 &#43;0800</lastBuildDate><atom:link href="https://doit.tellm.eu.org/zh/tags/two-pointers/" rel="self" type="application/rss+xml" /><item>
    <title>287. 寻找重复数 (Medium)</title>
    <link>https://doit.tellm.eu.org/zh/287.find-the-duplicate-number/</link>
    <pubDate>Fri, 04 Aug 2023 10:59:11 &#43;0800</pubDate><author>
                    <name>zwyyy456</name>
                </author><guid>https://doit.tellm.eu.org/zh/287.find-the-duplicate-number/</guid>
    <description><![CDATA[1 问题描述287. 寻找重复数 (Medium) 给定一个包含 n + 1 个整数的数组 nums ，其数字都在 [1, n] 范围内（包括 1 和 n），可知至少存 在一个重复的整数。 假设 nums 只有 一]]></description>
</item><item>
    <title>1156. 单字符重复子串的最大长度 (Medium)</title>
    <link>https://doit.tellm.eu.org/zh/1156.swap-for-longest-repeated-character-substring/</link>
    <pubDate>Sat, 03 Jun 2023 14:02:39 &#43;0800</pubDate><author>
                    <name>zwyyy456</name>
                </author><guid>https://doit.tellm.eu.org/zh/1156.swap-for-longest-repeated-character-substring/</guid>
    <description><![CDATA[1 问题描述1156. 单字符重复子串的最大长度 (Medium) 如果字符串中的所有字符都相同，那么这个字符串是单字符重复的字 符串。 给你一个字符串 text，你只]]></description>
</item><item>
    <title>795.区间子数组个数 (Medium)</title>
    <link>https://doit.tellm.eu.org/zh/795.number-of-subarrays-with-bounded-maximum/</link>
    <pubDate>Sun, 21 May 2023 18:30:23 &#43;0800</pubDate><author>
                    <name>zwyyy456</name>
                </author><guid>https://doit.tellm.eu.org/zh/795.number-of-subarrays-with-bounded-maximum/</guid>
    <description><![CDATA[1 问题描述795. 区间子数组个数 (Medium) 给你一个整数数组 nums 和两个整数： left 及 right 。找 出 nums 中连续、非空且其中最大元素在范围 [left, right] 内的子数组，并返回满足条件]]></description>
</item><item>
    <title>524.通过删除字母匹配到字典里最长单词</title>
    <link>https://doit.tellm.eu.org/zh/524.longest-word-in-dictionary-through-deleting/</link>
    <pubDate>Tue, 28 Feb 2023 16:26:27 &#43;0800</pubDate><author>
                    <name>zwyyy456</name>
                </author><guid>https://doit.tellm.eu.org/zh/524.longest-word-in-dictionary-through-deleting/</guid>
    <description><![CDATA[1 问题描述524. 通过删除字母匹配到字典里最长单词 (Medium) 给你一个字符串 s 和一个字符串数组 dictionary ，找出并返回 dictionary 中最长的字符串，该字符串可以通过删除 s 中]]></description>
</item><item>
    <title>881.救生艇</title>
    <link>https://doit.tellm.eu.org/zh/881.boats-to-save-people/</link>
    <pubDate>Sat, 25 Feb 2023 10:23:22 &#43;0800</pubDate><author>
                    <name>zwyyy456</name>
                </author><guid>https://doit.tellm.eu.org/zh/881.boats-to-save-people/</guid>
    <description><![CDATA[1 问题描述881. 救生艇 (Medium) 给定数组 people 。 people[i] 表示第 i 个人的体重 ， 船的数量不限，每艘船可以承载的最大重量为 limit。 每艘船最多可同时载两人，但条]]></description>
</item><item>
    <title>443.压缩字符串</title>
    <link>https://doit.tellm.eu.org/zh/443.string-compression/</link>
    <pubDate>Thu, 08 Dec 2022 18:45:43 &#43;0800</pubDate><author>
                    <name>zwyyy456</name>
                </author><guid>https://doit.tellm.eu.org/zh/443.string-compression/</guid>
    <description><![CDATA[1 问题描述443.压缩字符串 2 解题思路双指针、滑动窗口，注意for循环中不需要fast++。 3 代码 cpp class Solution { public: int compress(vector&lt;char&gt;&amp; chars) { vector&lt;char&gt; res; int cnt = 0; for (int slow = 0, fast]]></description>
</item><item>
    <title>3.无重复字符的最长子串</title>
    <link>https://doit.tellm.eu.org/zh/3.longest-substring-without-repeating-characters/</link>
    <pubDate>Mon, 05 Dec 2022 20:20:31 &#43;0800</pubDate><author>
                    <name>zwyyy456</name>
                </author><guid>https://doit.tellm.eu.org/zh/3.longest-substring-without-repeating-characters/</guid>
    <description><![CDATA[1 问题描述3.无重复字符的最长子串 2 解题思路用arr[96]记录每个字符出现的次数，如果字符次数大于1，说明已经包含了重复字符，则要更新l，]]></description>
</item><item>
    <title>30.串联所有单词串</title>
    <link>https://doit.tellm.eu.org/zh/30.substring-with-concatenation-of-all-words/</link>
    <pubDate>Mon, 05 Dec 2022 19:55:54 &#43;0800</pubDate><author>
                    <name>zwyyy456</name>
                </author><guid>https://doit.tellm.eu.org/zh/30.substring-with-concatenation-of-all-words/</guid>
    <description><![CDATA[1 问题描述30.串联所有单词串 2 解题思路首先，由于words中所有字符串长度相同，要比较words与s: - s从i = 0开始，可以划分为一系列的]]></description>
</item><item>
    <title>1610.可见点的最大数目</title>
    <link>https://doit.tellm.eu.org/zh/1610.maximum-number-of-visible-points/</link>
    <pubDate>Sun, 04 Dec 2022 19:42:50 &#43;0800</pubDate><author>
                    <name>zwyyy456</name>
                </author><guid>https://doit.tellm.eu.org/zh/1610.maximum-number-of-visible-points/</guid>
    <description><![CDATA[1 问题描述1610.可见点的最大数目 2 解题思路利用atan2函数，即可将斜率转化为$-\pi ~ \pi$的角度; 扩充数组，令angle[n + i]]]></description>
</item><item>
    <title>424.替换后的最长重复字符</title>
    <link>https://doit.tellm.eu.org/zh/424.longest-repeating-character-replacement/</link>
    <pubDate>Tue, 29 Nov 2022 13:47:51 &#43;0800</pubDate><author>
                    <name>zwyyy456</name>
                </author><guid>https://doit.tellm.eu.org/zh/424.longest-repeating-character-replacement/</guid>
    <description><![CDATA[1 问题描述424.替换后的最长重复字符 2 解题思路首先，注意一点，子串如果能通过k次替换变成只包含相同字母的子串，那么一定有max_cnt + k]]></description>
</item></channel>
</rss>
