<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Algorithm on kj’s blog</title><link>https://kfjie.me/ja/tags/algorithm/</link><description>Recent content from kj’s blog</description><generator>Hugo</generator><language>ja</language><managingEditor>None (Kfjie)</managingEditor><webMaster>None (Kfjie)</webMaster><copyright>本ブログのすべての文書は、特に指定されていない限り、BY-NC-SAライセンスに従っています。引用の際は出典を明記してください！</copyright><lastBuildDate>Sun, 18 Oct 2026 20:00:00 +0800</lastBuildDate><atom:link href="https://kfjie.me/ja/tags/algorithm/index.xml" rel="self" type="application/rss+xml"/><item><title>記録：連結リストの逆順化</title><link>https://kfjie.me/ja/post/reverse-linked-list/</link><pubDate>Sun, 18 Oct 2026 20:00:00 +0800</pubDate><author>None (Kfjie)</author><guid>https://kfjie.me/ja/post/reverse-linked-list/</guid><description>
<![CDATA[<h1>記録：連結リストの逆順化</h1><p>著者: Kfjie(None)</p>
        
          <p>r：単方向リストの全反転</p>
<h2 id="まずこのリンクリストを見てみましょう">
<a class="header-anchor" href="#%e3%81%be%e3%81%9a%e3%81%93%e3%81%ae%e3%83%aa%e3%83%b3%e3%82%af%e3%83%aa%e3%82%b9%e3%83%88%e3%82%92%e8%a6%8b%e3%81%a6%e3%81%bf%e3%81%be%e3%81%97%e3%82%87%e3%81%86"></a>
まず、このリンクリストを見てみましょう
</h2><p>例えば、次のようなリンクリストがあるとします：</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-text" data-lang="text"><span class="line"><span class="cl">head
</span></span><span class="line"><span class="cl"> ↓
</span></span><span class="line"><span class="cl"> 1 → 2 → 3 → 4 → null
</span></span></code></pre></div><p>図中の各ノードの位置はそのままに、ノード間の参照関係を逆にする：</p>
        
        <hr><p>この記事は2026-10-18に<a href='https://kfjie.me/'>kj’s blog</a>で公開され、最終更新日は2026-10-18です</p>]]></description><category>Notes</category></item></channel></rss>