rahul_1234's blog

By rahul_1234, history, 6 years ago, In English

Can someone provide me segment tree implementation of:

Range update : Add x to range

Finding frequency of a constant in range

I know of solution in sqrt decomposition exist, but I wanted in terms of segment tree (maybe lazy propagation or policy based data structures)?

  • Vote: I like it
  • -16
  • Vote: I do not like it

| Write comment?