hey ..did studied http://kartikkukreja.wordpress.com/2013/12/02/range-updates-with-bit-fenwick-tree/ but could not understand "Why we are not doing :- update(a,v) update(b+1,-v) for the update part and query(b)-query(a-1) for the sum part ..whats wrong in that part???"
↧