fenwick_range
Performs range updates and range sum queries on an array using a two-BIT Fenwick tree.
Instructions
Fenwick tree with range update and range query support using two BITs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| values | Yes | Initial array values | |
| operations | Yes | Array of {type, left, right, value?} operations |