<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Binary on Jeanphilo Blog</title><link>https://jeanphilogong.github.io/jeanblog/tags/binary/</link><description>Recent content in Binary on Jeanphilo Blog</description><generator>Hugo -- 0.168.0</generator><language>en-us</language><lastBuildDate>Wed, 15 Jul 2026 00:00:00 +0800</lastBuildDate><atom:link href="https://jeanphilogong.github.io/jeanblog/tags/binary/index.xml" rel="self" type="application/rss+xml"/><item><title>LeetCode 191: Number of 1 Bits and How to Skip Irrelevant Zeros</title><link>https://jeanphilogong.github.io/jeanblog/alg/leetcode/191-number-of-1-bits/</link><pubDate>Wed, 15 Jul 2026 00:00:00 +0800</pubDate><guid>https://jeanphilogong.github.io/jeanblog/alg/leetcode/191-number-of-1-bits/</guid><description>Start from a right-shift baseline, derive how n &amp;amp; (n - 1) clears one lowest set bit, and prove LeetCode 191 with a loop invariant.</description></item><item><title>LeetCode 338: Counting Bits by Reusing Smaller Results</title><link>https://jeanphilogong.github.io/jeanblog/alg/leetcode/hot100/338-counting-bits/</link><pubDate>Wed, 15 Jul 2026 00:00:00 +0800</pubDate><guid>https://jeanphilogong.github.io/jeanblog/alg/leetcode/hot100/338-counting-bits/</guid><description>Start by counting every value in 0..n independently, then derive answer[i] = answer[i &amp;amp; (i - 1)] + 1 for an O(n) solution.</description></item><item><title>LeetCode 231: Power of Two (Bit Trick O(1) ACERS Guide)</title><link>https://jeanphilogong.github.io/jeanblog/alg/leetcode/231-power-of-two/</link><pubDate>Wed, 21 Jan 2026 14:06:56 +0800</pubDate><guid>https://jeanphilogong.github.io/jeanblog/alg/leetcode/231-power-of-two/</guid><description>Judge whether an integer is a power of two in O(1) time using bit tricks. Includes engineering scenarios, pitfalls, and multi-language solutions.</description></item></channel></rss>