Tangential to the algorithm itself, this is about naming:<p>> Fenwick trees, also known as binary indexed trees<p>Every time I read something like this, I'm reminded of <a href="https://willcrichton.net/notes/naming-conventions-that-need-to-die/" rel="nofollow">https://willcrichton.net/notes/naming-conventions-that-need-...</a> .
"Fenwick tree" makes it seem like some unknown strange entity, while "binary indexed tree" immediately makes it a lot more accessible and gives you a better handle on the concept too.