Segment Tree Python CheatSheet

Here’s a complete segment tree cheatsheet covering the key patterns you’ll reach for in practice: