<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
  <title>Priyanshu Debnath — Blog</title>
  <link>https://priyanshudebnath.me/#/blogs</link>
  <description>Notes on competitive programming, mathematics, and systems programming.</description>
  <lastBuildDate>Thu, 17 Sep 2026 03:19:30 GMT</lastBuildDate>
  <item>
    <title>Bin Packing — Why It's Hard, How to Approximate It, and When It Isn't Hard At All</title>
    <link>https://priyanshudebnath.me/blog/bin-packing-np-hardness-approximation-algorithms/</link>
    <guid isPermaLink="true">https://priyanshudebnath.me/blog/bin-packing-np-hardness-approximation-algorithms/</guid>
    <pubDate>Tue, 07 Jul 2026 00:00:00 GMT</pubDate>
    <description>A full pass through bin packing — the formal problem, why the decision version is NP-complete (and why the optimization version is strongly so), every classical approximation algorithm with its proven bound, the special cases that collapse back to polynomial time, and the backtracking/bitmask-DP techniques you'd actually use to solve small instances in a contest.</description>
  </item>
  <item>
    <title>Why My PBDS ordered_multiset Solution TLE'd (and the Fenwick Fix)</title>
    <link>https://priyanshudebnath.me/blog/pbds-vs-fenwick-cache-tle/</link>
    <guid isPermaLink="true">https://priyanshudebnath.me/blog/pbds-vs-fenwick-cache-tle/</guid>
    <pubDate>Sun, 05 Jul 2026 00:00:00 GMT</pubDate>
    <description>My approach to Zhily and Barknights was correct from the start, but the PBDS ordered_multiset implementation TLE'd twice. This post covers how Red-Black trees and order statistics work, and why a Fenwick tree passed instead.</description>
  </item>
  <item>
    <title>Stack, Heap, and the Registers That Finally Made Sense</title>
    <link>https://priyanshudebnath.me/blog/stack-heap-registers/</link>
    <guid isPermaLink="true">https://priyanshudebnath.me/blog/stack-heap-registers/</guid>
    <pubDate>Sat, 04 Jul 2026 00:00:00 GMT</pubDate>
    <description>Hi, it's my first blog. I went looking for proof that the stack and heap actually exist, and found it.</description>
  </item>
</channel>
</rss>
