<?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/%E4%BD%8D%E5%85%83%E9%81%8B%E7%AE%97/</link><description>Recent content in 位元運算 on BenzHub</description><generator>Hugo</generator><language>zh-TW</language><lastBuildDate>Tue, 07 Jul 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://benzhub.github.io/tags/%E4%BD%8D%E5%85%83%E9%81%8B%E7%AE%97/index.xml" rel="self" type="application/rss+xml"/><item><title>位元運算 — AND、OR、XOR 六大運算子與 Bitmask 技巧 | 資料結構與演算法</title><link>https://benzhub.github.io/post/javascript/data-structures--algorithms/024-bit-manipulation/</link><pubDate>Tue, 07 Jul 2026 00:00:00 +0000</pubDate><guid>https://benzhub.github.io/post/javascript/data-structures--algorithms/024-bit-manipulation/</guid><description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;位元運算（Bit Manipulation）&lt;/strong&gt; 是直接對整數的二進位（Binary）表示進行操作的技術，以硬體層級的單一 CPU 指令實現 O(1) 的集合、邏輯與數值運算。從 &lt;strong&gt;AND/OR/XOR&lt;/strong&gt; 六大基礎運算子，到 &lt;strong&gt;lowbit&lt;/strong&gt;、&lt;strong&gt;popcount&lt;/strong&gt;、&lt;strong&gt;Bitmask 狀態壓縮&lt;/strong&gt;，位元操作是底層系統設計、面試題破解與動態規劃優化的核心工具。&lt;/p&gt;
&lt;/blockquote&gt;</description></item></channel></rss>