<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>字串 on BenzHub</title><link>https://benzhub.github.io/tags/%E5%AD%97%E4%B8%B2/</link><description>Recent content in 字串 on BenzHub</description><generator>Hugo</generator><language>zh-TW</language><lastBuildDate>Mon, 15 Jun 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://benzhub.github.io/tags/%E5%AD%97%E4%B8%B2/index.xml" rel="self" type="application/rss+xml"/><item><title>陣列與字串 — Array 操作技巧與字串處理完整指南 | 資料結構與演算法</title><link>https://benzhub.github.io/post/javascript/data-structures--algorithms/002-array-string/</link><pubDate>Mon, 15 Jun 2026 00:00:00 +0000</pubDate><guid>https://benzhub.github.io/post/javascript/data-structures--algorithms/002-array-string/</guid><description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;陣列（Array）&lt;/strong&gt; 是演算法學習的第一塊基石，它的核心優勢來自 &lt;strong&gt;連續記憶體&lt;/strong&gt; 佈局——任何位置的存取都是 O(1)。&lt;strong&gt;字串（String）&lt;/strong&gt; 本質上是字元陣列，兩者共享大量解題模式。掌握 &lt;strong&gt;前綴和&lt;/strong&gt;、&lt;strong&gt;差分陣列&lt;/strong&gt;、&lt;strong&gt;Kadane&amp;rsquo;s Algorithm&lt;/strong&gt; 等經典技巧，你將能以 O(n) 的優雅效率解決大多數陣列題型。&lt;/p&gt;
&lt;/blockquote&gt;</description></item></channel></rss>