Range updates or range set with BIT/fenwick tree
- How should I do range updates with BIT using Union Find Data Structure?what would be expected complexity?
- In this case max updates can be 7.N*logN but what if we set number in range to random number which don't have such relation with the input.Would it still possible to do it with BIT/fenwick tree or there's any other approach to set elements in range to a given.
Thanks!