Associative Operation on Range
- Time : O(nlogn+qlogn)
- Space : O(nlogn)
c++
1 | using namespace std; |