<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <id>https://happyboat320.github.io/</id>
    <title>Happyboat's Blog</title>
    <updated>2025-10-04T08:24:03.739Z</updated>
    <generator>https://github.com/jpmonette/feed</generator>
    <author>
        <name>Happyboat</name>
        <email>i@valaxy.site</email>
        <uri>https://valaxy.site</uri>
    </author>
    <link rel="alternate" href="https://happyboat320.github.io/"/>
    <link rel="self" href="https://happyboat320.github.io/atom.xml"/>
    <subtitle>Welcome to My Blog!</subtitle>
    <logo>https://valaxy.site/valaxy-logo.png</logo>
    <icon>https://happyboat320.github.io/favicon.svg</icon>
    <rights>CC BY-NC-SA 4.0 2025 © Happyboat</rights>
    <entry>
        <title type="html"><![CDATA[课程总结]]></title>
        <id>https://happyboat320.github.io/posts/课程总结</id>
        <link href="https://happyboat320.github.io/posts/课程总结"/>
        <updated>2025-06-18T23:44:00.000Z</updated>
        <content type="html"><![CDATA[<ul>
<li>栈、队列、链表
<ul>
<li>栈：单调栈用来看某种范围，栈用于表达式转换</li>
<li>队列：循环队列</li>
<li>链表：有时候带一个哑头节点会有帮助</li>
<li>总的来说：写这些类的时候，记得写析构。</li>
</ul>
</li>
<li>串</li>
</ul>
<br/><p>访问 <a href="https://happyboat320.github.io/posts/课程总结" target="_blank">https://happyboat320.github.io/posts/课程总结</a> 阅读全文。</p>]]></content>
        <author>
            <name>Happyboat</name>
            <email>i@valaxy.site</email>
            <uri>https://valaxy.site</uri>
        </author>
        <published>2025-06-18T23:44:00.000Z</published>
    </entry>
    <entry>
        <title type="html"><![CDATA[栈、队列、链表]]></title>
        <id>https://happyboat320.github.io/posts/栈、队列、链表</id>
        <link href="https://happyboat320.github.io/posts/栈、队列、链表"/>
        <updated>2025-06-18T23:42:00.000Z</updated>
        <content type="html"><![CDATA[<h1>栈</h1>
<h2>单调栈</h2>
<p><a href="https://www.luogu.com.cn/problem/P5788">P5788 【模板】单调栈 - 洛谷</a></p>
<p>模板代码如下：</p>
<pre><code class="language-C++">int n</code></pre>
<br/><p>访问 <a href="https://happyboat320.github.io/posts/栈、队列、链表" target="_blank">https://happyboat320.github.io/posts/栈、队列、链表</a> 阅读全文。</p>]]></content>
        <author>
            <name>Happyboat</name>
            <email>i@valaxy.site</email>
            <uri>https://valaxy.site</uri>
        </author>
        <published>2025-06-18T23:42:00.000Z</published>
    </entry>
    <entry>
        <title type="html"><![CDATA[字符串]]></title>
        <id>https://happyboat320.github.io/posts/字符串</id>
        <link href="https://happyboat320.github.io/posts/字符串"/>
        <updated>2025-06-18T19:52:00.000Z</updated>
        <content type="html"><![CDATA[<h1>字符串</h1>
<h2>KMP</h2>
<h3>求前缀函数</h3>
<pre><code class="language-C++">//求next数组
//这里是next[i]= &quot;i及以前最长的长度&quot;
int next[M];
memset(next,0</code></pre>
<br/><p>访问 <a href="https://happyboat320.github.io/posts/字符串" target="_blank">https://happyboat320.github.io/posts/字符串</a> 阅读全文。</p>]]></content>
        <author>
            <name>Happyboat</name>
            <email>i@valaxy.site</email>
            <uri>https://valaxy.site</uri>
        </author>
        <published>2025-06-18T19:52:00.000Z</published>
    </entry>
    <entry>
        <title type="html"><![CDATA[母亲节故事]]></title>
        <id>https://happyboat320.github.io/posts/母亲节故事</id>
        <link href="https://happyboat320.github.io/posts/母亲节故事"/>
        <updated>2025-05-11T23:30:00.000Z</updated>
        <content type="html"><![CDATA[<p>记那天晚上，一位母亲的故事</p>
<p>当一位母亲抱着年幼的孩儿，手用带血的纸巾捂着孩儿的额上，向我们问询，这里哪里的医院最近的时候，我们都有几分慌张。群策群力，得出最近的校医院且有夜急诊后，我们分工合作</p>
<br/><p>访问 <a href="https://happyboat320.github.io/posts/母亲节故事" target="_blank">https://happyboat320.github.io/posts/母亲节故事</a> 阅读全文。</p>]]></content>
        <author>
            <name>Happyboat</name>
            <email>i@valaxy.site</email>
            <uri>https://valaxy.site</uri>
        </author>
        <published>2025-06-10T00:00:00.000Z</published>
    </entry>
    <entry>
        <title type="html"><![CDATA[查找与排序]]></title>
        <id>https://happyboat320.github.io/posts/查找与排序</id>
        <link href="https://happyboat320.github.io/posts/查找与排序"/>
        <updated>2025-06-04T16:26:00.000Z</updated>
        <content type="html"><![CDATA[<h1>二分的两种思路</h1>
<pre><code class="language-C++">while (ll &lt; rr)//用[ll,rr]表示答案区间
{
    mm = (ll + rr) &gt;&gt; 1;//可选:用ll+(rr-ll)&gt;&gt;1防</code></pre>
<br/><p>访问 <a href="https://happyboat320.github.io/posts/查找与排序" target="_blank">https://happyboat320.github.io/posts/查找与排序</a> 阅读全文。</p>]]></content>
        <author>
            <name>Happyboat</name>
            <email>i@valaxy.site</email>
            <uri>https://valaxy.site</uri>
        </author>
        <published>2025-06-04T16:26:00.000Z</published>
    </entry>
    <entry>
        <title type="html"><![CDATA[图]]></title>
        <id>https://happyboat320.github.io/posts/图</id>
        <link href="https://happyboat320.github.io/posts/图"/>
        <updated>2025-05-28T17:03:00.000Z</updated>
        <content type="html"><![CDATA[<h1>图</h1>
<h2>最小生成树</h2>
<h3>Kruskal（适合稀疏图）</h3>
<p>对所有边进行排序</p>
<pre><code class="language-C++">int kruskal()
{
    sort(a+1,a+m+1,[](edge &amp;</code></pre>
<br/><p>访问 <a href="https://happyboat320.github.io/posts/图" target="_blank">https://happyboat320.github.io/posts/图</a> 阅读全文。</p>]]></content>
        <author>
            <name>Happyboat</name>
            <email>i@valaxy.site</email>
            <uri>https://valaxy.site</uri>
        </author>
        <published>2025-05-28T17:03:00.000Z</published>
    </entry>
    <entry>
        <title type="html"><![CDATA[树]]></title>
        <id>https://happyboat320.github.io/posts/树</id>
        <link href="https://happyboat320.github.io/posts/树"/>
        <updated>2025-05-28T16:08:00.000Z</updated>
        <content type="html"><![CDATA[<h1>树</h1>
<h2>树的存储</h2>
<h3>邻接表</h3>
<pre><code class="language-C++">struct node
{
    int t;
    int l;
}
vector&lt;node&gt; a[1005];
//插入边：
</code></pre>
<br/><p>访问 <a href="https://happyboat320.github.io/posts/树" target="_blank">https://happyboat320.github.io/posts/树</a> 阅读全文。</p>]]></content>
        <author>
            <name>Happyboat</name>
            <email>i@valaxy.site</email>
            <uri>https://valaxy.site</uri>
        </author>
        <published>2025-05-28T16:08:00.000Z</published>
    </entry>
</feed>