Range query and range update using BIT ( fenwick tree )

I know Fenwick tree can be used to solve (point update) - (range query) and (range update) - (point query). Today i found on the internet that they can also be used for (range update) - (range query).


I was not able to understand how it was possible. Can Somebody please explain it here.

See this : http://apps.topcoder.com/forums/?module=Thread&threadID=715842&start=0&mc=8 it explain everything.

this is what you seek:

Various usages of BIT

I read it from your link and was not able to understand it properly.