Comments

what kind of bit is this ? can you explain the bit ? this is the sum function : for ( ; i >= 0; i = (i & (i + 1)) — 1) ans += t[i];

in ques E what does this do?

for ( ; i < m; i |= i + 1) t[i] += v;