Algorithms Index less than 1 minute read Published: March 05, 2026This is the central index for the C++ algorithms series.CoreBasic AlgorithmsTreesDisjoint Set UnionGraph AlgorithmsShortest Path and MSTTopological Sort and SCCArray and Pointer PatternsSliding Window and Two PointersMonotonic Stack and DequeBinary Search PatternsDynamic Programming and StringsDynamic ProgrammingString AlgorithmsRange Data StructuresSegment Tree and Fenwick TreeShare on Bluesky Facebook LinkedIn Mastodon X (formerly Twitter) Previous NextLeave a Comment
Inside Raft: Leader Election, Log Replication, Quorums, and Safety 37 minute read Published: July 04, 20261. Introduction
Segment Tree and Fenwick Tree 5 minute read Published: March 04, 2026Fenwick Tree (Binary Indexed Tree)Fenwick tree supports point updates and prefix/range sums efficiently. Core idea: each index stores partial sum of a power-of-two range. How it works: move index with idx += idx & -idx for update and reverse for query.
Leave a Comment